Sequence Diagram
-
How do I depict decision-branching in a sequence diagram? Can anyone provide a simple example (maybe a simple drawing) where an object makes two different calls /sends two different messages or events depending on a decision within its function or thread of execution. Thank you!
I am a SysAdmin, I battle my own daemons.
-
How do I depict decision-branching in a sequence diagram? Can anyone provide a simple example (maybe a simple drawing) where an object makes two different calls /sends two different messages or events depending on a decision within its function or thread of execution. Thank you!
I am a SysAdmin, I battle my own daemons.
I don't have any reference material with me, but as far as I recall you use a block with a guard condition around all the messages within each variant of the decision outcome.
-
How do I depict decision-branching in a sequence diagram? Can anyone provide a simple example (maybe a simple drawing) where an object makes two different calls /sends two different messages or events depending on a decision within its function or thread of execution. Thank you!
I am a SysAdmin, I battle my own daemons.
DenClancy wrote:
How do I depict decision-branching in a sequence diagram?
There is no IF or ELSE in a (UML) sequence diagram, AFAIK. If you want to depict decision-branching just draw multiple sequence diagrams, one for each branch.
-
How do I depict decision-branching in a sequence diagram? Can anyone provide a simple example (maybe a simple drawing) where an object makes two different calls /sends two different messages or events depending on a decision within its function or thread of execution. Thank you!
I am a SysAdmin, I battle my own daemons.
-
DenClancy wrote:
How do I depict decision-branching in a sequence diagram?
There is no IF or ELSE in a (UML) sequence diagram, AFAIK. If you want to depict decision-branching just draw multiple sequence diagrams, one for each branch.