When creating class operations to your own data model in the Implementation folder, you can select from three different types of implementation:
Mapping Diagram: Refer to Modeling Data Mapping for more information about mapping diagrams.
The xUML Action Language is a script like language that you can use in class operations to implement atomic actions like manipulating strings, arrays, and so forth. Such class operations are called action script.
Refer to Action Script Language for a comprehensive documentation of all elements of the xUML Action Language. |
The fastest way to create an action script operation is via the quick actions of the related class.
Hover over the class you want to add the operation to, and click the Add Action Script Operation quick action (). | ||
Assign a name to your new action script and click Save. | ||
The Action Script Editor opens in a new tab. | ||
You can now add action script.
The script you have entered is saved and validated in the background. |
Alternatively, you can add a class operation via the context menu of a class, and create an implementation afterwards.
Right-click the class you want to add an operation to and select Add Operation from the context menu. | |
In the pop-up, enter the name of the operation and click Save. | |
The new operation is displayed below the class. Icon indicates that this operation has no implementation, yet. | |
Select Create Implementation from the context menu of the newly created operation. | |
In the pop-up window, select option Action Script and confirm with Save. | |
The Action Script Editor opens in a new tab, and you can start entering action script (see further above). |