MagicDraw 18.3 Documentation
To create a new operation
- Click Create operation on the left side of the dialog.
Click the appropriate icon on the right side of the dialog to select a new operation type (see the descriptions in following table).
If the Standard mode is on, switch to the Expert mode to make more operation types available.
Click to create a new simple navigation operation.
|Standard / Expert||Click to create a new metachain navigation operation.|
|Standard / Expert||Click to create a new find operation.|
Click to create a new filter operation and then specify both the input collection that you need to filter and the filter criteria.
Click to specify a new type test operation as a condition for selected filter operation. In other cases, the icon is not available.
The operation tests, whether the type of the element matches the given type or stereotype. If the types matches, it returns true, and if they not – false. You can also use this operation to check, if the element is an instance of the given classifier.
For this operation, you must specify the following parameters:
Click to specify a new nested operation.
Click to create a new union operation and then specify as many members for it as you need.
Click to create a new exclude operation and then specify both From and Excluded members for it.
Click to add a new operation from the model. You can select either one of the built-in operations, which are stored in standard/system profiles of your project, or a custom operation.
Click to create a new script operation, which language can be one of the following:
It can also be a reference to a java class (Binary).
|Expert||Click to select an element from the model.|
|Expert||Click to create a String value.|
|Expert||Click to create a Boolean value.|
|Expert||Click to create a Integer value.|
|Expert||Click to create a Null value.|
|Expert||Click to create a collection of values.|
Click to add an operation executing a specified expression.
The unique value of this operation is that the specified expression can be calculated dynamically instead of being fixed. As a result, the calculation to be executed can depend on the Contextual element.
Click to add an expression retrieving the contextual variable specified by name. Most common case is accessing the THIS variable, which stores the current Contextual element.
- No labels