Author Topic: nested diagrams in sequence diagrams  (Read 22202 times)

ms73

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
nested diagrams in sequence diagrams
« 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: nested diagrams in sequence diagrams
« Reply #1 on: September 20, 2014, 07:28:33 am »
Simply drag the diagram in question onto the SD.

q.

ms73

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: nested diagrams in sequence diagrams
« Reply #2 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: nested diagrams in sequence diagrams
« Reply #3 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.
« Last Edit: September 20, 2014, 04:55:28 pm by qwerty »

George Andronakos

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: nested diagrams in sequence diagrams
« Reply #4 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…

(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.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: nested diagrams in sequence diagrams
« Reply #5 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.

George Andronakos

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: nested diagrams in sequence diagrams
« Reply #6 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.


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


Best regards,
George

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: nested diagrams in sequence diagrams
« Reply #7 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.
« Last Edit: August 19, 2015, 12:04:43 am by qwerty »