Call Operation Action
Call Operation Actions are used to call actions/operations from the activity diagram.
Warning
The quicklink feature of Enterprise Architect doesn't add the target pin for actions. Call Behavior Actions created with the quicklink feature can't be used to call an operation on a foreign target.
A CallOperation Action consists usually of the following parts:
- a
targetPin to define the target instance you want to call - an
InputPinfor each parameter of the method to call (optional) - an
OutputPinfor the return value of the method (optional)
To "Call" the function you simply need to:
- connect a
ControlFlowto it to specify the action sequence - provide the data needed by the
InputPins- using the
DefaultValuein Enterprise Architect or aValuePinwith anOpaqueExpressionin MagicDraw. - connecting a
ValueSpecification,ReadVariable,... or any other appropriate Action via anObjectFlow(also check the Deriving ControlFlows feature)
- using the
- store the data provided by the
OutputPinsviaObjectFlowin an appropriate Action (optinal) - provide a target via the
targetPin- if left as is Embedded Engineer will automatically assign
me/thisas target - using the
DefaultValuein Enterprise Architect or aValuePinwith anOpaqueExpressionin MagicDraw. - connecting a
ReadSelf,ReadVariable,... or any other appropriate Action via anObjectFlow(also check the Deriving ControlFlows feature)
- if left as is Embedded Engineer will automatically assign
Example calling the test operation of the same class:

See also