Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to generate a sequence diagram from an interaction?
https://www.eclipse.org/forums/index.php/mv/msg/489276/1064547/#msg_1064547
I want to generate interactions programmatically and visualize them by sequence diagrams in Papyrus.
I tried the "diagram generation"-plugin, but it seems to not work for sequence diagrams. Even when I make a simple working interaction with a sequence diagram within papyrus, I always get the following error message after using a "diagram generation"-template on this model for a new sequence diagram:
"The requested action violates the integrity of the model."
"Reason: There is no valid trace sequencing the InteractionFragments in the fragment property. Some of them can not be organized as valid sequence:..."
When I fill an empty sequence diagram with existing messages by drag and drop, I get the same error message after changing the length of a lifeline vertically...
So is there any way to generate a sequence diagram from an interaction or is it impossible?
Thanks!]]>Joe I2013-06-19T20:20:09-00:00Re: How to generate a sequence diagram from an interaction?
https://www.eclipse.org/forums/index.php/mv/msg/489276/1064592/#msg_1064592
I suggest you to draw with Papyrus a sequence diagram with two timelines and one message, and then delete the .di file, and examine the interaction in the .uml file, and finally, try to create again a sequence diagram starting from this uml file, because it should work with that considering that Papyrus itself created all the elements that consider necessary.
I did that and I realized that there were some elements that I didnt consider...I am not sure if this is your problem, but just in case I wanted to share this with you
bye!]]>Federico Toledo2013-06-20T07:20:32-00:00Re: How to generate a sequence diagram from an interaction?
https://www.eclipse.org/forums/index.php/mv/msg/489276/1064690/#msg_1064690
First I created an interaction with the help of a sequence diagram in papyrus. Then I deleted .di and .notation to create a fresh model from the .uml file without any sequence diagram.
In Juno it indeed seems to work to create similar (not perfect) sequence diagrams by drag and droping existing elements (first lifelines, then exec specs and last messages) -> of course diagram templates don't work
So I suppose for generating usable sequence diagrams I have to generate the .notation file by myself programmatically...
Has anyone done this and could give me some hints?
Are there any Papyrus apis which make it easier to generate sequence diagrams automatically (and different to the one diagramgeneration uses)?
Or: Which code parts of Papyrus relate to the notation file?
Thanks!]]>Joe I2013-06-20T14:47:29-00:00Re: How to generate a sequence diagram from an interaction?
https://www.eclipse.org/forums/index.php/mv/msg/489276/1064693/#msg_1064693
Federico Toledo2013-06-20T14:52:35-00:00