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.





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.


Operations Dialog - General





Copy Features Between Elements

Move Features Between Elements



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 *.




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.



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

Learn more