Checks
What the Problems panel checks in a sequence diagram, from errors to work left to finish.
The Problems panel checks a sequence diagram every time it changes, as it does a process. See Modeling checks for how the panel works and what each level means.
Errors
- An element, such as a message, note or activation, refers to a participant that doesn't exist.
- A box refers to a participant that doesn't exist.
- A fragment other than alt, par or critical has more than one branch.
Warnings
- An alt has only one branch. Use opt, or add an else.
- A bar is ended on a participant that isn't active.
- A participant takes part before the message that creates it, or after its lifeline ends.
- A participant is created twice. Only the first message creates it.
- A message creates its own sender.
- A box goes round no participants.
To finish
These mean the diagram isn't done yet:
- A participant sends and receives no messages.
- A fragment or one of its branches is empty.
- A call gets no reply where the exchange is synchronous.
An exchange is synchronous when the receiver replies to the sender somewhere else in the diagram. A call that fails or is lost on the way never waits for a reply.
An empty diagram gets one style note: "The diagram is empty."