Book a Demo

Author Topic: Linking sequence diagram to Use Case  (Read 13628 times)

Mark Jones

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Linking sequence diagram to Use Case
« on: August 10, 2010, 06:23:27 pm »
In the example project use cases e.g Create Account, has a sequence diagram linked to it. How do I do this?
I've created a sequence diagram and would like to link it to a use case, but don't know how to acheive this.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Linking sequence diagram to Use Case
« Reply #1 on: August 10, 2010, 06:34:33 pm »
Mark,

In principle you don't link diagrams to elements, you link elements to elements. A diagram doesn't really exists in UML.

So it would be best to create something like an Interaction, and nest the diagram under that. Then you can link the Interaction element with the use case.

From a pragmatic point of view it might be easier to just nest the diagram under the use case, but that would be less "UML".

Geert

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Re: Linking sequence diagram to Use Case
« Reply #2 on: August 11, 2010, 02:12:42 am »
Yes, you can drag the diagram under the use case, then right-click on the use case and select Advanced...Make Composite from the pop-up menu.  If the sequence diagram is the only diagram under the use case (and it wasn't already a composite) then this will link the two so that if you subsequently double click on the use case it will open the sequence diagram.

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Re: Linking sequence diagram to Use Case
« Reply #3 on: August 11, 2010, 02:18:18 am »
Once you create the link you can fix the model up a bit so that it reflects the hierarchy exactly the way you want.

Mark Jones

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Linking sequence diagram to Use Case
« Reply #4 on: August 11, 2010, 05:34:48 pm »
Hi Guys,
Thanks for the feedback and suggestions.

I don't think I phrased my question very well, but Paul has worked out what I was trying to acheive. "Make composite" was the solution.

Thanks again.
Mark