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 |
![]() |
![]() |
![]() |