Adding guard conditions to interaction operands in sequence diagrams

In sequence diagrams, a guard condition, or an interaction constraint, is a semantic condition or restriction in an interaction operand within a combined fragment. A guard condition is created automatically when you create a combined fragment. You can also manually add a guard condition in an interaction operand that does not have an existing guard condition.
You must have a sequence diagram that contains at least one combined fragment with multiple lifelines open.
To add a guard condition to an interaction operand:
  1. In the diagram editor, right-click an interaction operand that has no existing guard condition; then click Interaction Operand > Add a guard condition.
  2. Click the field, type the guard condition, and press Enter.
Note: In a loop combined fragment, you can edit the guard condition using the textual syntax [ ‘(‘ <minint> [, <maxint> ] ’)’ ], where minit and maxint are non-negative integers, and state the minimum and maximum number of times that a loop can occur.
Related concepts
Guard conditions in sequence diagrams
Interaction operands
Related tasks
Creating combined fragments in sequence diagrams
Adding and removing covered lifelines to and from combined fragments in sequence diagrams
Adding interaction operands to combined fragments in sequence diagrams
Removing interaction operands from combined fragments in sequence diagrams
Moving interaction operands within combined fragments
Resizing combined fragments in sequence diagrams

Feedback