|
Re: Sequence diagram - Basic Message Creation [message #1816443 is a reply to message #1816378] |
Tue, 29 October 2019 14:33 |
|
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"
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Sequence diagram - Basic Message Creation [message #1816448 is a reply to message #1816443] |
Tue, 29 October 2019 14:58 |
Emmanuel SEMO Messages: 7 Registered: October 2019 |
Junior Member |
|
|
Hello Steven,
First of all thank you for your answer. I understand that the diagram sequence is more complicated than others but I need it.
About the semantic expression of I should replace it by something like "var:self"?
About the creation message I think I don't need it and I will keep only the basic message element.
I have download/clone the UML-Designer and I will try to follow this example to adapt my elements. But my question is in the odesign file they are using services in the basic message but on my case did I need this kind of services?
Thanks and regards,
Emmanuel
[Updated on: Tue, 29 October 2019 15:00] Report message to a moderator
|
|
|
Re: Sequence diagram - Basic Message Creation [message #1816513 is a reply to message #1816448] |
Wed, 30 October 2019 11:07 |
|
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
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.04137 seconds