Creating execution occurrences

Execution occurrences show the beginning and end of the unit of behavior (the actions performed by an operation or event) that is triggered by a specific message.

About this task

Note: To animate a sequence diagram automatically, set the SequenceDiagram::General::AutoLaunchAnimation property to one of these options:
  • Always launches the sequence diagram automatically.
  • If In Scope launches animation only if the sequence diagram is in the active component scope.

    The Never option for this property prevents automatic animation and is the default.

Procedure

There are two ways to draw interaction occurrences:

  1. Select the message in the sequence diagram, right-click, and select Add Execution Occurrences.
  2. Click the Execution Occurrences button in the Diagram Tools, then select the appropriate message in the sequence diagram.

Results

You can have Rhapsody® create execution occurrences automatically when you create messages by setting the SequenceDiagram::General::AutoCreateExecutionOccurrence property to Checked. Execution occurrences are drawn at the beginning and end of the message.

Execution occurrence

Note the following information:

  • If you move a message, its execution occurrences move with it.
  • You can resize execution occurrences (lengthwise), but cannot move them.
  • If you move a message with execution occurrences or resize them so they overlap other execution occurrences, they are "merged," as shown in this example.
    Execution occurrences - merged