Prev | Next |
Define Parameters
Within the properties of an operation, Activity or Interaction, you can define parameters to control how that object and its subordinate objects behave.
The order or sequence of the parameters in the object properties is reproduced in code. You can set and manage the order using facilities available within the 'Parameters' tab of the Properties window for an operation.
Access
Ribbon |
Design > Element > Properties > Properties > [select or create an operation] > Parameters |
Keyboard Shortcuts |
| [select or create an operation] > Parameters |
Define the Parameters
The first two fields are in the lower panel of the tab, and the remaining fields are in the upper panel.
Option |
Action |
See also |
---|---|---|
Parameter |
In the 'Parameter' list, overtype the New Parameter text with the new parameter name. |
|
Type |
Click on the drop-down arrow and click on:
To add new code language data types that can be displayed in this list, see the Data Types topic. |
Select |
Default Value |
(Optional) Type a default value for the parameter. |
|
Stereotype |
(Optional) Type in the appropriate stereotype name, or click on the button and select one using the Stereotype Selector. |
Stereotype Selector |
Alias |
(Optional) Type an alternative name or reference for the parameter. |
|
Direction |
Click on the drop-down arrow and select the way the parameter is passed to a function:
|
Operation Parameters by Reference |
Fixed Value |
Click on the drop-down arrow and select True, even if the parameter is passed by reference. |
|
Multiplicity |
Click on the button to display the 'Multiplicity' dialog, and define the multiplicity of the parameter.
|
|
Notes |
Click on the Selector button and type any additional notes on the parameter. These notes are unformatted. |
Notes
Learn more