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

Operations

Operations are features of a Class or other element that represent the behavior or services an element supports. For a Customer Class, UpdateCustomerName and GetCustomerAddress can be operations. Operations have several important characteristics, such as type, scope (visibility), static, abstract and notes.

Topics

Images

Topic

Detail

See also

 

Create and Modify Element Operations

In the Diagram view or Project Browser, either:

Right-click on the element to be edited, and from the context menu select the Operations menu option, or
Click on the element and press ( F10 )

 

The <Element name> Operations dialog displays.

You can also copy or move existing Operations between elements.

These facilities are only available if the target element supports operations.

General Properties of Operations

 

 

 

 

Copy Features Between Elements

Move Features Between Elements

The Element Browser

 

Class

 

How Operations Appear in Diagrams

In diagrams, elements with operations (typically Classes) list the operations in the second properties compartment, in colored text, as shown on the left. The default color is dark green; for example:

Finalize() : void)

Some characteristics display in shorthand form; for example, static displays as $, abstract as *.

 

ProjectBrowserOperations

 

Operations in the Project Browser

In the Project Browser, Classes with operations have the operations listed beneath the Class name, each preceded by a pink box (opbox).

Right-click on an operation and select the Operation Properties context menu option, to open the Operations dialog and edit details for the feature.

From the Project Browser, you can drag operations onto new elements to give them the same operations.

 

Notes

If the parent element provides source or target roles for a connector, the connector can be attached to a specific operation

Learn more