Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
In UML, the tasks to perform by an activity are implemented to action nodes. In the Designer, you can add actions to the activity diagram by dragging operations from the service panel and dropping them on the canvas.
Tip | ||||||||
---|---|---|---|---|---|---|---|---|
|
Adding
Action NodesOperations to the Activity Diagram
PaneTip |
---|
You can do this with any operation: Operations from your data model or the Base Types, as well as operations from imported libraries or connectors. |
Dropping an operation on the activity diagram creates a call operation action and the related pins.
Adding Suboperations
If you want to create a new operationsuboperation, you can click the corresponding an operation icon in the elements toolbar and drag it to the diagram pane. You can create the following types of operations suboperations directly from the toolbar:
The example on the left shows how to create an action script operation as suboperation.
| |||
The new operation suboperation is now displayed in the activity diagram and you can enter its name directly into the element.
| |||
You can create parameters directly in the Activity Editor using the two icons above the operation. They appear when you hover over it with the mouse. You can also create parameters via the service panel.
| |||
The newly created operation is also displayed in the Implementation folder of the service panel. It resides within the same class as as a suboperation to the activity operation to which it was added in the Implementation folder of the service panel. |
General Operation Options
The following options are available for both operations and suboperations:
Once added to the diagram, you can move action nodes operations any time. Click the action node operation and drag it to a new position. | |||||||
| |||||||
You can hover over the action node operation to see a tooltip showing the full operation name and path. | |||||||
| Hovering over an operation pin shows the direction, the name and the full path of the type. |
Deleting
Action NodesOperations from the
Diagram PaneActivity Diagram
Operations and suboperations can be deleted from the activity diagram.
Info |
---|
The operation will be deleted from the activity diagram only. The corresponding operation remains in the implementation folder of the service panel and must be deleted there if desired. |
| Right |
| To delete an action note as a representation of an operation from the diagram pane, right click on the corresponding element to open the context menu and use the click Delete You can also select the element and use the Del key on your keyboard.
|
Panel | ||
---|---|---|
| ||
|
Panel | ||
---|---|---|
|
Otp | ||
---|---|---|
|