Call behaviors

In activity diagrams, call behaviors are a type of action that you can use to reference behaviors in other activity, state machine, or interaction diagrams in a model.

Call behaviors reference the behavior, rather than referencing an operation which then invokes a behavior. You can add input pins and output pins to specify values that are passed to and from the call behaviors. You can also define preconditions and postconditions, call constraints, for call behaviors.

Each call behavior has a unique name that is synchronized with the name of the behavior that it references.

As the figures in the following table illustrate, a call behavior is displayed as a rectangle with rounded corners that contains the name of the behavior.

Call behavior that references a behavior in an activity diagram Call behavior that references a behavior in a state machine diagram Call behavior that references a behavior in an interaction diagram
A rectangle with rounded corners contains the text OwnedBehaviorActivity1. A rectangle with rounded corners contains the text OwnedStateMachine1. A rectangle with rounded corners contains the text OwnedBehaviorInteraction1.

Related concepts
Activities
Structured activities
Actions
Call operations
Control nodes
Object nodes
Activity edges
Related tasks
Adding call behaviors to activity diagrams
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.