Creating and Populating Combined Fragments
You can create combined fragments in any Sequence diagram.
To create a combined fragment:
- In the Modeling Palette, click the Combined Fragment Component icon
.
- In the target Sequence diagram, click the target location.
The IDE displays the combined fragment box, populating the Interaction Operator tab with the default operator Assert.
To specify an interaction operator:
- On the target combined fragment, right-click within the operator tab, and, under Interaction Operator, choose the target interaction operator.
The IDE replaces the existing operator in the operator tab with the selected operator.
See Interaction Operators for a description of the operators.
To specify a new interaction operand:
- Right-click the target combined fragment box, and, next to Interaction Operand, choose Edit Interaction Constraint.
The IDE displays <expression> to denote an empty expression in the target combined fragment box.
- Double-click <expression> to make the expression box editable, and then type your expression.
- Do one of the following:
- Click outside the expression box.
- Press Enter.
The IDE accepts your expression and displays it in the box.
To edit an existing interaction constraint
- In the target combined fragment box, double-click the target expression to make it editable, and then type your expression.
- Do one of the following:
- Click outside the expression box.
- Press Enter.
The IDE accepts your edits and displays the edited expression in the box.
Legal Notices