Creating an Interaction Occurrence to Nest Sequence Diagrams

You can nest Sequence diagrams within other Sequence diagrams. The UML 2.0 specification refers to any nested Sequence diagram as an interaction occurrence.

When you nest one Sequence diagram inside another, the Diagram editor shows the resulting interaction occurrence as a combined fragment element inside the destination diagram. This combined fragment element has the following labels:

In the Projects window, a node for the interaction occurrence appears under the node for the destination Sequence diagram.

To nest one Sequence diagram inside another and create an interaction occurrence in the destination diagram:

  1. In the Diagram editor, have the destination diagram open.
  2. In the Projects window, expand the nodes for both of the Sequence diagrams: the target diagram (which you will drag) and the destination diagram (in which you will nest the target diagram).
  3. In the Projects window, select the top node for the target diagram.
  4. Drag the node into the destination diagram in the Diagram editor.
    The IDE creates a combined fragment element in the destination diagram. Notice how the element is represented in the Diagram editor and in the Projects window.

Legal Notices