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.
Access Project Browser | Right-click element | Operations > Operations or
On diagram | Right-click on element | Features & Properties | Operations > Operations or
Right-click on operation | Operation Properties > Operations or
Create and Modify Operations
You create and modify the operations of an element on the 'Operations' tab of the 'Features' dialog. This tab itself contains panels and tabs that you can use to completely define the operations you need for an element.
Appearance on diagram
In diagrams, elements with operations (typically Classes) list the operations in the second properties compartment, in colored text, as shown.
The default text color is dark green, as in the example. Some characteristics modify the display; for example, static operations display underlined, whilst abstract operations are italicized.
Appearance in Project Browser
In the Project Browser, operations are listed underneath their parent element name, each preceded by a pink box ().
- If the parent element provides source or target roles for a connector, the connector can be attached to a specific operation
- You can also drag, copy or move existing operations between elements; this facility is only available if the target element supports operations