Prev | Next |
Activity Parameter Nodes
Description
An Activity Parameter Node accepts input to an Activity or provides output from an Activity.
This example depicts two entry parameters and one output parameter defined for the Activity.
Define an Activity Parameter Node for an Activity
Step |
Action |
---|---|
1 |
Right-click on the element and select the 'New Element | Activity Parameter' option. |
2 |
The 'Properties' dialog displays, which prompts for the name and other properties of the embedded element. |
3 |
To further define the new Activity Parameter, select the 'Parameter' tab of the 'Properties' dialog and define:
Activity Parameter Nodes also have the 'Exception' and 'Stream' options:
|
Learn more
OMG UML Specification:
The OMG Unified Modeling Language specification, (v2.5.1, p.398) states:
As a kind of Behavior, an Activity may have Parameters (..). When the Activity is invoked, values may be passed into the Activity execution on input Parameters (i.e., those with direction in or inout) and values may be passed out of the Activity execution on output Parameters (i.e., those with direction inout, out or return).
Within an Activity, inputs to and outputs from an Activity are handled using ActivityParameterNodes. Each ActivityParameterNode is associated with one Parameter of the Activity that owns the node. The type of an ActivityParameterNode shall be the same as the type of its associated Parameter.