MagicDraw 18.5 Documentation

Skip to end of metadata
Go to start of metadata

The Call Behavior Action invokes a Behavior directly rather than invoking a behavioral feature that, in turn, causes the Behavior. The argument values of the Action are available to the execution of the invoked Behavior. The execution of the Call Behavior Action waits until the execution of the invoked Behavior is completed and a result is returned on its Output Pin. In particular, the invoked Behavior can be an Activity.

The Receive Order and Fill Order Call Behavior Actions

To assign a Behavior to the Call Behavior Action, do one of the following


  • On the Activity diagram palette, click the Automatic Behavior Creation button . An Activity will be created automatically on a Call Behavior Action creation.
  • Open the Specification window of the Call Behavior Action, and click the cell of the Behavior property value. Then click  and, in the opened dialog, select the Behavior. Click OK when you are finished.

  • On the Activity diagram, right-click the Call Behavior Action shape. On the shortcut menu, click Behavior, and then click to select a Behavior that you wish to assign on the element.

  • On the Activity diagram, click a Call Behavior Action shape, and then, on the smart manipulator toolbar, click . In the opened list, select the Behavior.

  • On the Activity diagram, click a Call Behavior Action shape, and then press Ctrl+T. In the opened list, select the Behavior.

  • On the diagram, click a Call Behavior Action shape, then click the name area. Type the “:” colon, and then type the existing Behavior name. Press Enter, or click anywhere on the diagram. The Behavior is created and assigned.

    Type the “:” colon, then press Ctrl+Space or Ctrl+Backspace and then, in the opened list, select the Behavior.

 

  • Drag a Behavior from the Containment tree onto the Call Behavior Action shape on the diagram. The Behavior is assigned to the Call Behavior Action.

 

  • Double click the Call Behavior Action with the assigned Behavior - the Behavior Specification window opens, or, if the assigned Behavior is a diagram, the diagram opens in the same diagram tab.
  • The rake icon is displayed on the shape if the Call Behavior Action refers to another Activity diagram. The rake icon is not shown by default, therefore, you need to set the Show Rake Icon property value to true in the Symbol Properties dialog.
  • A parameter is created automatically for each newly created Pin on the Call Behavior Action. The parameter’s name, type, direction, and multiplicity are synchronized with the Pin name, type, direction, and multiplicity. 
    Note that a parameter for a pin is created automatically if:
    • the Call Behavior Action has the Behavior assigned. 
    • the Behavior is editable.
    • the Behavior has only one usage, and it is not used in another project (in server projects).

 

To create a new diagram for the Call Behavior Action, do one of the following


 

  • On the Activity diagram, click the Call Behavior Action shape, and then, on the smart manipulator toolbar, click .The new Activity diagram opens in the same diagram tab.

  • The name of the new Activity diagram is the same as the name of the Call Behavior Action.
  • If a Behavior was already assigned for the Call Behavior Action, a new Activity diagram under the Behavior will be created. This is valid if the Behavior is editable and the Behavior’s type is Activity.
  • If Pin(s) are created on the Call Behavior Action, then the parameters for these Pins are created in a newly created activity. Pins are synchronized with the created parameters, i.e., the Pin name, type, and multiplicity are synchronized with the parameter name, type, and multiplicity.
  • If parameters are created for a new Activity, then Activity parameter Nodes are created in a new Activity diagram and displayed on the Activity diagram frame.
  • On the Activity diagram, right-click the Call Behavior Action shape, point to Create Diagram, and then point to a diagram type.

     

To change the name display mode on the call behavior action


  • In the Call Behavior Action Symbol Properties dialog, select the Name Display Mode property, and then select one of the options: Show Action Name (default), Show Behavior Name, or Show Both.

    If the Automatic Behavior Creation mode is turned on, the default value of the Name Display Mode property is Show Behavior Name for the newly created Call Behavior Action.

 

  • No labels