How can I demonstrate switch-case statement in sequence diagram
Asked Answered
L

1

5

I have seen switch-case recommendations for activity diagram, however I can not find an example for sequence diagram. Do we have to use break keyword while drawing or just drawing conditions only?

Lustrum answered 21/10, 2019 at 12:46 Comment(2)
I will use conditions for this. Have a look at this: https://mcmap.net/q/107446/-how-to-show-quot-if-quot-condition-on-a-sequence-diagramChuddar
@XiaoPeng-ZenUML.com I also did similar but not sureLustrum
B
10

use of switch case in sequence diagram I use the alternative block with more than one condition in them, see the pic above

I am not sure about the correctness of this but I use this way to use the switch case in the sequence diagram and it is posted at the link below: http://www.tracemodeler.com/articles/a_quick_introduction_to_uml_sequence_diagrams/

Braw answered 7/4, 2020 at 16:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.