When you model the flow of control in an activity diagram,
you can add call behavior nodes that reference behavior that is
defined in other diagrams. You can create a reference to behavior
in a new activity, state machine, or interaction diagram or create
a reference to behavior in an existing diagram.
An activity diagram must be open in the Modeling perspective.
To add a call behavior:
- In the Palette, in the Activity Diagram Drawer,
click Call Behavior.
- Complete one of the following steps:
- To reference a behavior in a new diagram, click Create
New Activity, Create New State Machine,
or Create New Interaction. The resulting
new behavior is owned by the activity.
- To reference a behavior in an existing diagram, click Select
Existing Element and in the Select Element window,
click an element and click OK.
- Type a name for the call behavior and press Enter.