Book a Demo

Author Topic: Activity Diagrams - How to link final to start?  (Read 3242 times)

jdeauml

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Activity Diagrams - How to link final to start?
« on: November 18, 2010, 02:46:18 am »
How do I link the final activity of one diagram to the initial activity of another diagram?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Activity Diagrams - How to link final to start
« Reply #1 on: November 18, 2010, 09:18:25 am »
Show it on a higher level diagram.

One way to do this is to first make sure the "Tools > Options > Diagram > Behavior > Use Automatic Sub-Activities" option is switched on, then create a new activity diagram, drag both old activity diagrams from the Project Browser onto new diagram - choose "Hyperlink" when asked - and draw a control flow between the two new activity elements that are created.
The Sparx Team
[email protected]

jdeauml

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Activity Diagrams - How to link final to start
« Reply #2 on: November 19, 2010, 12:50:58 am »
I have a top level activity, lets call it A.  It is comprised of activities B & C.  I have activity diagrams for B & C.

Using your steps, I was able to create an activity diagram for A by dragging B & C diagrams onto it as hyperlinks.  I added an 'initial' and a 'final' and linked them together.  If I double-click on B or C, it takes me to their diagrams.

However, if I double click on the final of B, it doesn't take me to the 'initial' of C.  Is this link possible?  If so, how?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Activity Diagrams - How to link final to start
« Reply #3 on: November 19, 2010, 12:45:31 pm »
I would warn against modelling GOTOs from inside one activity to inside another, but if all you want is to make it easier to navigate around your model, you can add hyperlinks to your diagrams.
The Sparx Team
[email protected]