UML Modeling Techniques > Activity modeling > Creating activity modeling items > Creating a call behavior action
  
Creating a call behavior action
You can create a Call Behavior Action through an Activity Diagram, Modeler pane or Class Diagram.
If when you create the Call Behavior Action you select an Activity that has Parameters, Modeler creates Input Pins and Output Pins on the Call Behavior Action for those Parameters. If the Activity has a Return Type, Modeler creates an Output Pin named Return Pin, the Data Type of which is the Activity's Return Type.
To create a call behavior action through an activity diagram:
1. On the Activity Diagram toolbar, click the Call Behavior Action toolbar button, and then on the Activity Diagram click in free space or within an Activity Partition, Interruptible Activity Region or Structured Activity Node.
2. If you want to use an existing Activity as the Linked Item, select the Activity you want to use as the Linked Item, and then click OK.
If you want to create a new Activity to use as the Linked Item, click New.
3. Type the name of the Call Behavior Action, and then press the Enter key.
Alternatively:
Drag the Activity that is to be the Linked Item of the Call Behavior Action from a Modeler pane to the Activity Diagram.
To create a call behavior action through a Modeler pane:
1. In a Modeler pane, right-click the Activity or Structure Activity Node that is to own the Call Behavior Action, point to New, point to Action Node, and then click Call Behavior Action.
2. If you want to use an existing Activity as the Linked Item, select the Activity you want to use as the Linked Item, and then click OK.
If you want to create a new Activity to use as the Linked Item, click New.
3. Type the name of the Call Behavior Action, and then press the Enter key.
To create a call behavior action through a class diagram:
1. On the Class Diagram toolbar, add the calling and called Activities to the diagram.
2. Click the Composite Aggregation button, click the calling Activity, and then click the called Activity.
Modeler creates the Call Behavior Action as a child of the calling Activity.
3. If required, rename the Call Behavior Action that is created under the calling Activity.