Book a Demo

Author Topic: Branching (If) in a sequence diagram  (Read 20816 times)

cobra429

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Branching (If) in a sequence diagram
« on: August 18, 2005, 04:30:23 am »
Can anyone tell me how to model an if condition in a sequence diagram?  

I would assume that somehow EA would produce another object lifeline that would be conected to the original lifeline, but I can't seem to find how to go about this.

Thanks

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Branching (If) in a sequence diagram
« Reply #1 on: August 18, 2005, 08:52:35 am »
The UML 2 way of doing this is to use an 'alt' frame around the condition.

There are also loop and opt frames for other purposes.

Kevin Brennan

  • EA User
  • **
  • Posts: 95
  • Karma: +0/-0
    • View Profile
Re: Branching (If) in a sequence diagram
« Reply #2 on: August 18, 2005, 08:55:51 am »
Sequence diagrams should rarely include conditionals, as they should represent a single scenario. However, if for some reason you need to do this:

1. Select a Fragment from the Toolbox and set the Type to alt.

2. Enter the possible conditions in the Condition textbox and save them.
Sr. Consultant at blue sands Inc. and Vice President, Body of Knowledge at the IIBA. All opinions are my own.