System Sequence Diagram – How to Show Multiple Exit Conditions in a Loop Frame

sequence-diagramsystem

How are multiple exit conditions in a system sequence diagram loop frame indicated? And how would the alternative event flow based on how the system exited the loop be shown?
For example a login loop could exit after a valid login or after a set number of failed login attempts.

Best Answer

It's probably going to look similar to this:

enter image description here

See how the breaks in the loops are indicated by a dotted line pointing back to the original call location (the ones marked "unfulfilled")?

There is also an "Opt" box that handles the "unfulfilled" condition.

Related Topic