Activity Parameter Nodes are object nodes at the beginning and end of the flows that are used to accept inputs and provide outputs from activities.
The following steps show you how to work with Activity Parameter Nodes:
To create an Activity Parameter Node
The parameter for the Activity Parameter Node is created automatically.
The parameter name, type, and multiplicity are synchronized with the pin or Object Node from which/to which the Object Flow was created. The direction of the parameter is set according to the Object Flow direction, otherwise you can set it manually by simply right-clicking the activity parameter, and selecting the preferred direction.
When creating an Activity Parameter Node on a diagram frame, click on the diagram frame to open the menu. In the menu, the following Activity Parameter Nodes are listed:
If a parameter with an inout direction is selected for the Activity Parameter Node creation, then two Activity Parameter Nodes are created on the diagram frame.
You can also create an Activity Parameter Node by drawing an Object Flow directly to or from the Activity diagram frame.
To set the direction of an Activity Parameter Node
You can display Activity Parameter Nodes on the frame of the Activity diagram when you are:
To display an Activity Parameter Nodes when creating a new Activity diagram
In the opened Select Parameters dialog, select the parameters that you want to display, and click OK.
Selected Activity Parameter Nodes are displayed on the frame of the Activity diagram.
If you want all Activity Parameter Nodes to be displayed automatically when creating a new Activity diagram, go to Options > Project on the main menu, and set the Display All Activity Parameter Nodes in Diagrams option to true.
To display Activity Parameter Nodes on the frame in the pre-existing Activity diagram
In the dialog, select the parameters that you want to display, and click OK.
The selected Activity Parameter Nodes are displayed on the frame of the Activity diagram.
To display or hide the direction of an Activity Parameter Node
The model used in the figures of this page is the Activity diagram sample model that comes with MagicDraw. To open this sample do one of the following: