Sequence diagram - Basic Message Creation [message #1816378] |
Mon, 28 October 2019 13:33  |
Eclipse User |
|
|
|
Hello everybody,
I'm begginer in SIRIUS and I'm currently working on the creation of a simply sequence diagram.
I tried to follow this tutorial :
https://www.eclipse.org/sirius/doc/specifier/sequences/Sequence%20Diagrams.html#BasicMessages
I created the instance role, the execution lifeline, but when I'm trying to put my basic message between my roles instances the arrow is always not visible.
I can't see it on the diagram and no error is generated.
I have tried two solutions for the basic message as you can see I have joined both in the screenshots.
I'm currently locked on this point and I can't go further if someone got some advices for me it will be very helpful.
Thanks.
Emmanuel
|
|
|
Re: Sequence diagram - Basic Message Creation [message #1816443 is a reply to message #1816378] |
Tue, 29 October 2019 10:33   |
Eclipse User |
|
|
|
Hello,
The description of a sequence diagram is harder than other kind of representations as there are more parameters to set, so for a beginner I would recommand to start with another kind of representation in order to start modeling with Sirius with easier steps.
Anyway, from your screenshot, I can tell you that on your Basic Message description, there is an issue with your semantic candidate expression. This expression is executed from the current element (here the semantic element used to create your diagram) and is expected to return a set of candidate elements (to display as message). On the screenshot, we can see that it is filled with a String label.
Also, your creation message has the same issue, but there is also a typo in the target finder expression as it is filled with "...recereceivingEndFinder".
I think that it will be easier for you to look how some examples of Sequence diagram are done. You can either look into UML Designer[1], it is open-source[2].
There is another sample in Sirius that is available in git [3]. It is the Interaction modeler and you will need the four plugins starting with "org.eclipse.sirius.sample.interactions".
Best regards,
Steve
[1] http://www.umldesigner.org/
[2] http://www.umldesigner.org/developer-guide/contribute.html -> See the part "Get the source code"
[3] https://www.eclipse.org/sirius/community.html-> See the part "Source code"
|
|
|
|
Re: Sequence diagram - Basic Message Creation [message #1816513 is a reply to message #1816448] |
Wed, 30 October 2019 07:07  |
Eclipse User |
|
|
|
Hello,
The semantic candidate expression depends on your metamodel, but I doubt that it will be "var:self" in your case as this expression should return a set of elements that will be represented as messages. As you can see on the last screenshot, the expression is "feature:message" because the diagram is created on a "Interaction" element that has a reference "message" that returns "Message" elements. I still really think that you should start with the tutorials on other representations [1]. I get that you only need a sequence diagram, but that will help you understand what each concept are used for.
Indeed in this example, the specifier created some services for some expressions. It is not mandatory to use services, but sometimes it is simpler to write a Java method than a long AQL expression.
Best Regards,
Steve
[1] https://www.eclipse.org/sirius/getstarted.html
|
|
|
Powered by
FUDForum. Page generated in 0.44321 seconds