Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Sequence diagram - Basic Message Creation
Sequence diagram - Basic Message Creation [message #1816378] Mon, 28 October 2019 17:33 Go to next message
Emmanuel SEMO is currently offline Emmanuel SEMOFriend
Messages: 7
Registered: October 2019
Junior Member
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 14:33 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 462
Registered: May 2011
Senior Member
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
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 Go to previous messageGo to next message
Emmanuel SEMO is currently offline Emmanuel SEMOFriend
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 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 462
Registered: May 2011
Senior Member
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
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Passing column and row semantic object when creating a table from a table
Next Topic:Properties labels not displaying correctly
Goto Forum:
  


Current Time: Tue Feb 18 18:19:56 GMT 2020

Powered by FUDForum. Page generated in 0.02147 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top