Sparx Systems Forum
Enterprise Architect => Uml Process => Topic started by: Mark Jones 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.
-
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
-
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.
-
Once you create the link you can fix the model up a bit so that it reflects the hierarchy exactly the way you want.
-
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