Home » Modeling » UML2 » Missing source/target attribute from ActivityEdge when xmi:id different than name attribute
Missing source/target attribute from ActivityEdge when xmi:id different than name attribute [message #476350] |
Tue, 09 October 2007 08:48  |
Eclipse User |
|
|
|
Originally posted by: danjaspoja.gmail.com
Hello,
I have found the following problem when creating an activity diagram
prgrammatically using Eclipse UML2 API. When specifying Action node, if
I set the name and xmi:id to be the same value and then I generate an
XML file from the model, the source and target attributes appear
correctly in the ActivityEdge tags. However, if I set name attribute to
be some value different than the value I set for xmi:id, the generated
XML edges are are randomly missing either target or source attribute.
Has anyone else encountered this behavior? Is this a programmer error or
a bug?
Thank you very much for any feedback,
Danja
|
|
| |
Re: Missing source/target attribute from ActivityEdge when xmi:id different than name attribute [message #477074 is a reply to message #476354] |
Wed, 12 March 2008 05:36   |
Eclipse User |
|
|
|
James Bruck 写道:
> Hi Danja,
>
> Can you demonstrate this with a JUnit test so that it can be investigated?
> I would like to see exactly how you are setting the id and name.
>
> Cheers,
> - James.
>
>
>
> "Danja" <danjaspoja@gmail.com> wrote in message
> news:feftb8$4cq$1@build.eclipse.org...
>> Hello,
>>
>> I have found the following problem when creating an activity diagram
>> prgrammatically using Eclipse UML2 API. When specifying Action node, if I
>> set the name and xmi:id to be the same value and then I generate an XML
>> file from the model, the source and target attributes appear correctly in
>> the ActivityEdge tags. However, if I set name attribute to be some value
>> different than the value I set for xmi:id, the generated XML edges are are
>> randomly missing either target or source attribute.
>>
>> Has anyone else encountered this behavior? Is this a programmer error or a
>> bug?
>>
>> Thank you very much for any feedback,
>>
>> Danja
>
>
Hi Danja,
I am also creating an activity diagram prgrammatically using Eclipse
UML2 API.I 'd like to know how to create a ControlFlow between two
actions,how to setSource,how to setTarget for the ControlFlow.Could you
give me an example for that?
thank you very much! I am appreciated the reply.
Best Wishes!
xiaoqiang
|
|
| |
Re: Missing source/target attribute from ActivityEdge when xmi:id different than name attribute [message #625166 is a reply to message #476350] |
Tue, 09 October 2007 13:51  |
Eclipse User |
|
|
|
Hi Danja,
Can you demonstrate this with a JUnit test so that it can be investigated?
I would like to see exactly how you are setting the id and name.
Cheers,
- James.
"Danja" <danjaspoja@gmail.com> wrote in message
news:feftb8$4cq$1@build.eclipse.org...
> Hello,
>
> I have found the following problem when creating an activity diagram
> prgrammatically using Eclipse UML2 API. When specifying Action node, if I
> set the name and xmi:id to be the same value and then I generate an XML
> file from the model, the source and target attributes appear correctly in
> the ActivityEdge tags. However, if I set name attribute to be some value
> different than the value I set for xmi:id, the generated XML edges are are
> randomly missing either target or source attribute.
>
> Has anyone else encountered this behavior? Is this a programmer error or a
> bug?
>
> Thank you very much for any feedback,
>
> Danja
|
|
|
Re: Missing source/target attribute from ActivityEdge when xmi:id different than name attribute [message #626201 is a reply to message #476354] |
Wed, 12 March 2008 05:36  |
Eclipse User |
|
|
|
James Bruck 写道:
> Hi Danja,
>
> Can you demonstrate this with a JUnit test so that it can be investigated?
> I would like to see exactly how you are setting the id and name.
>
> Cheers,
> - James.
>
>
>
> "Danja" <danjaspoja@gmail.com> wrote in message
> news:feftb8$4cq$1@build.eclipse.org...
>> Hello,
>>
>> I have found the following problem when creating an activity diagram
>> prgrammatically using Eclipse UML2 API. When specifying Action node, if I
>> set the name and xmi:id to be the same value and then I generate an XML
>> file from the model, the source and target attributes appear correctly in
>> the ActivityEdge tags. However, if I set name attribute to be some value
>> different than the value I set for xmi:id, the generated XML edges are are
>> randomly missing either target or source attribute.
>>
>> Has anyone else encountered this behavior? Is this a programmer error or a
>> bug?
>>
>> Thank you very much for any feedback,
>>
>> Danja
>
>
Hi Danja,
I am also creating an activity diagram prgrammatically using Eclipse
UML2 API.I 'd like to know how to create a ControlFlow between two
actions,how to setSource,how to setTarget for the ControlFlow.Could you
give me an example for that?
thank you very much! I am appreciated the reply.
Best Wishes!
xiaoqiang
|
|
| |
Goto Forum:
Current Time: Sun Aug 31 19:16:52 EDT 2025
Powered by FUDForum. Page generated in 0.04264 seconds
|