hi, for drawing sequence diagrams, how can i represent a repeated sequence of activities? it seems no tools can support it.
jlr 120000JRPP3 Posts
Re: Alt in sequence diagram2006-04-12T17:00:57ZThis is the accepted answer. This is the accepted answer.First, I'm not a UML expert so take the following with a grain of salt.
The general consensus is that this isn't what sequence diagrams are good at, and so it typically isn't shown. There is a UML construct called "interaction frame" that can be used to denote conditional or iterative execution on a sequence diagram, but AFAIK Rose doesn't support it.
If I were in your shoes, I would just add a note to the appropriate message(s) if I thought it was really important for the reader's understanding, otherwise I would just leave it off.
Re: Alt in sequence diagram2006-04-12T23:30:09ZThis is the accepted answer. This is the accepted answer.Rose does not support the UML 2.0 combined fragment.
What I have done for a workaround is this:
1. Create a note
2. Right click on the note, select Format, and set fill color off by clicking next to Use Fill Color. The note should now be transparent.
3. Type the conditional in the note
4. Expand the note to surround the messages you want to enclose in the combined fragment.
The only disadvantage I have found is that I have to move the note to be able to edit the messages. This is because the messages are not really "inside" the note, but are actually underneath the note (in the sense that the graphic elements for the messages are under the graphic element for the note).
Re: Alt in sequence diagram2006-04-13T15:00:39ZThis is the accepted answer. This is the accepted answer.Does it make sense to treat this repeated set of activities as a method with its own diagram? You could then link that diagram through a note in the appropriate places in other diagrams.
Re: Alt in sequence diagram2006-04-27T07:18:14ZThis is the accepted answer. This is the accepted answer.
"Alt" Module in Seuqnce diagram is covered with UML 2
But not all the tools are align with UML 2.
Rational Rose is based on UML 1.x, so you need to use Note to explain the different cases.
But you know, you can create "alt" in sequence diagrams in many tool now :
- Enterprise Architect (Sparx Systems)
- Rational Software Architect
Re: Alt in sequence diagram2006-04-29T14:10:48ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK