Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Class Operations in Activity Diagrams

Operations from Classes can be displayed on Activity diagrams as Actions. When an operation is shown as an Action, the notation of the Action displays the name of the Class that features the operation.

How to:

To add an operation to an Activity diagram, follow the steps below:

Step

Action

See Also

1

Open an Activity diagram

 

2

From the Project Browser open a Class and locate the operation to be added to the Activity diagram

 

3

Drag the operation on to the diagram

 

DragOperation

 

4

When the operation has been added to the Activity diagram the Action displays the name of the Class that features the operation

 

Action - CallOperation

 

Right-click on the Action in the diagram to locate, in the Project Browser, the:

  • Behavior classifier (CallBehavior Activity) using the Find | Locate Classifier in Project Browser context menu option or
  • Call operation (CallOperation Activity) using the Find | Locate Operation in Project Browser context menu option

 

 

If it becomes necessary to change the operation that this Action refers to, follow the steps below:

Step

Action

See Also

1

Right-click on the Action

The context menu displays

 

2

Select the Advanced | Set Operation menu option

The Set Operation dialog displays

Set Operation dialog

3

If necessary, in the In Namespace field, select the model that contains the required operation

 

4

Double-click on the required operation. The Action updates to show the new classifier and operation

NewAction