Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: ms73 on September 20, 2014, 06:43:36 am

Title: nested diagrams in sequence diagrams
Post by: ms73 on September 20, 2014, 06:43:36 am
hi
how can i create nested diagram in sequence diagram
like is shown here http://www.sparxsystems.com/resources/uml2_tutorial/uml2_sequencediagram.html under "gate' section
thanks
Title: Re: nested diagrams in sequence diagrams
Post by: qwerty on September 20, 2014, 07:28:33 am
Simply drag the diagram in question onto the SD.

q.
Title: Re: nested diagrams in sequence diagrams
Post by: ms73 on September 20, 2014, 07:51:54 am
thanks!!!, it worked
now i'd like to connect parent diagram to nested.
I created 'diagram gate" on nested diagram sending message M to 1st life-line on nested diagram
now on parent diagram i'd like to connect to "nested diagram" and i'd like that EA will force me to send message M. is this possible?

or what is the right way to send message from parent to nested diagram
thanks a lot
Title: Re: nested diagrams in sequence diagrams
Post by: qwerty on September 20, 2014, 04:54:50 pm
I can't remember having used that. But I'd say: you can not send a message to a diagram. That makes absolutely no sense. This message is to be seen as something being shown as processed inside the nested diagram. In that respect I'd create the nested diagram as SD with the first lifeline being that from where the message came and repeating that.

q.
Title: Re: nested diagrams in sequence diagrams
Post by: George Andronakos on August 18, 2015, 12:25:25 pm
Hi,

I’m also trying to model a sequence diagram that links to a “sub-sequence-diagram” using a reference fragment – to achieve something like the model in the EA help…
(http://www.sparxsystems.com/enterprise_architect_user_guide/12.0/standard_uml_models/diagramgate.html)
(Image source: http://www.sparxsystems.com/enterprise_architect_user_guide/12.0/standard_uml_models/diagramgate.html)

•      I’ve created a separate sequence diagram that will serve as the sub-diagram.
•      I drop the sub-diagram (…as Interaction Occurrence) into the main diagram and it shows the diagram as a fragment.
•      However, I want to create a message from a lifeline of the main diagram to the reference fragment and it does not create.
•      I have tried to create a diagram gate in the diagram as well. However, I cannot create a message from a lifeline to the diagram gate either.

I can’t find any documentation that shows the procedure of how to model this, so can you please advise me on how to achieve this? Thanks.
Title: Re: nested diagrams in sequence diagrams
Post by: qwerty on August 18, 2015, 05:50:53 pm
Diagram Gate is an element from the toolbox. Just place it on the diagram so it overlaps the diagram frame.

q.
Title: Re: nested diagrams in sequence diagrams
Post by: George Andronakos on August 18, 2015, 09:41:38 pm
Hi qwerty,
Thanks for replying to my query. My problem is that I want to link a lifeline to the diagram gate with a message but the tool will not allow the message from the lifeline to join onto the diagram gate. It seems that this is what the following diagram is doing but I cannot make Enterprise Architect create this message and show the lifeline linking to the diagram gate with a pointed arrow.
(http://www.sparxsystems.com/enterprise_architect_user_guide/12.0/standard_uml_models/diagramgate.html)

Image source:  http://www.sparxsystems.com/enterprise_architect_user_guide/12.0/standard_uml_models/diagramgate.html


Best regards,
George
Title: Re: nested diagrams in sequence diagrams
Post by: qwerty on August 19, 2015, 12:02:31 am
I had no problem connecting a message. It's even possible to re-use the gate in different diagrams. Hmm.

q.