Author Topic: Activity Diagram : Switch case  (Read 2342 times)

Prashanth Kumar

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Activity Diagram : Switch case
« on: September 29, 2008, 04:51:07 pm »
I am working on detailed design for my firmware. I am using activity diagram to show the functionality of a routine. I did not see any elements to show switch case process. please advice on this.

Sygnus

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Activity Diagram : Switch case
« Reply #1 on: October 29, 2008, 02:04:17 am »
What I use for switches is the regular Decision, with a <<switch>> stereotype name the choice after the switch var/object.

That done, the actual cases can be created using regular guards.

If you don't need, or don't want to use the stereotype, I think it is acceptable to put a Switch(ObjectName) on the name of the choice, as long as your team is ok with it.