Skip to content

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 target Pin to define the target instance you want to call
  • an InputPin for each parameter of the method to call (optional)
  • an OutputPin for the return value of the method (optional)

To "Call" the function you simply need to:

  • connect a ControlFlow to it to specify the action sequence
  • provide the data needed by the InputPins
    • using the DefaultValue in Enterprise Architect or a ValuePin with an OpaqueExpression in MagicDraw.
    • connecting a ValueSpecification, ReadVariable,... or any other appropriate Action via an ObjectFlow (also check the Deriving ControlFlows feature)
  • store the data provided by the OutputPins via ObjectFlow in an appropriate Action (optinal)
  • provide a target via the target Pin
    • if left as is Embedded Engineer will automatically assign me/this as target
    • using the DefaultValue in Enterprise Architect or a ValuePin with an OpaqueExpression in MagicDraw.
    • connecting a ReadSelf, ReadVariable,... or any other appropriate Action via an ObjectFlow (also check the Deriving ControlFlows feature)

Example calling the test operation of the same class:

Call Operation