Adding call behaviors to activity diagrams

When you model the flow of control in an activity diagram, you can define how a specific behavior is invoked by adding a call behavior node. You can create a reference to behavior in a new activity, state machine, or interaction diagram, create a reference to behavior in an existing diagram, or reference a behavior that is not currently specified in the model.

Before you begin

An activity diagram must be open in the Modeling perspective.

About this task

To add a call behavior:

Procedure

  1. In the Palette, under Actions, expand Invocation Actions, and click Call Behavior.
  2. Complete one of the following steps:
    • To reference a new behavior, click Create Activity, Create State Machine, Create Interaction, or Create Opaque Behavior. The activity owns the resulting behavior.
    • To reference an existing behavior, click Select Existing Element and, in the Select Element window, click an element and click OK.
    • To reference a behavior that is not currently specified in the model, click Create Unspecified.
      Tip: You can also create a call behavior by clicking a behavior in the Project Explorer view and dragging it to the diagram editor.

Feedback