Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Define Properties of 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. You can, however, simply create a number of operation names if you want to create operations quickly and not necessarily fully define them as you create them.
Access In diagram or Project Browser:
Click on element | Element | Operations (F10) > Operations or
Right-click on element | Features & Properties | Operations > Operations
The two main panels of the Operations tab help you to define the properties of each operation in an element. The dialog also provides tabs for defining:
· | Parameters |
· | Notes |
· | Behavior |
· | Redefines |
· | Pre-conditions and Post conditions (that is, Constraints) |
· | Tagged Values |
Create and define Operations
Field/Button |
Action |
See also |
||||||||
---|---|---|---|---|---|---|---|---|---|---|
Name |
Overtype the New Operation... text to create a new operation, or click on the name to edit an existing operation.
|
|
||||||||
Parameters |
Lists the parameters that have been defined for this operation on the Parameters tab.
|
|||||||||
Return Type |
(This option is not shown for State or State Machine elements.) Defaults to int. To change this, overtype the field or click on the drop-down arrow and click on:
To add new code language data types that can be displayed in this list, see the Data Types topic.
|
|
||||||||
Action |
Define the action of the operation: do, exit or entry. (Displayed for operations of State or State Machine elements.)
|
|||||||||
Scope |
Click on the drop-down arrow and select one of:
|
|
||||||||
Stereotype |
(Optional) Define one or more stereotypes for the operation; either:
|
|
||||||||
Alias |
(Optional) Type an alternative name or reference for the operation.
|
|
||||||||
Method <operation name> panel
|
Define the detailed properties of the selected operation. |
|||||||||
Parameters tab |
Define parameters to modify how the operation takes action.
|
|||||||||
Notes tab |
Enter any comments and discussion you want to record on the operation; you can format the notes text using the Notes toolbar at the top of the field. You can also perform a range of operations on the Notes text, using the Notes context menu.
|
|
||||||||
Behavior tab |
Define the behavior or functionality of the operation. |
|
||||||||
Redefines tab |
(Optional) In a Generalize relationship, configure the selected operation to redefine an operation in the target element. You can also set up the operation to check for an exception, and at that point switch control to a specified Classifier.
|
|||||||||
Pre tab
|
Define pre-conditions and post-conditions that modify the action of the operation. |
|
||||||||
Post tab
|
||||||||||
Tagged Values tab |
Define any Tagged Values that the operation has. |
|
||||||||
Close |
Click on this button to close the Features dialog, saving all information you have recorded in it.
|
|
Context Menu options
Right-click on the upper panel, or on a specific operation name.
Option |
Action |
Shortcut |
See also |
---|---|---|---|
Add New |
Add a new operation to the list, with default values in the dialog fields.
|
Ctrl+N |
|
Copy as New |
Copy a selected operation as a new operation. Provide a new name for the operation and click on the OK button.
|
Ctrl+C |
|
Restore Sort Order |
If you have used the column header arrows to reorganize the sequence in which the operations are displayed, click on this option to redisplay them in the default sequence (alphabetical by name).
|
|
|
Move up |
Move the selected operation one row up the list.
|
Ctrl+Up arrow |
|
Move down |
Move the selected operation one row down the list.
|
Ctrl+Down arrow |
|
Field Chooser |
Display the Field Chooser dialog, which contains any column headings not currently applied to the page. Drag a column heading from the Field Chooser into the preferred position in the row of column headings. You can also drag the column headings into a different sequence. To return a column heading to the Field Chooser, drag it out of the heading row.
|
|
|
Enable Group Box |
Show or hide the Group Box, in which you reorganize the list sequence of the operations according to one or more characteristics.
|
||
Toggle Filter Bar |
Show or hide the Filter Bar, in which you type text strings that the data in the corresponding column must match in order to be listed.
|
||
Delete |
Immediately delete the selected operation from the element.
|
Ctrl+Del |
|
Notes
this helps you when you want to create operations quickly and might not necessarily want to fully define each one as you create it
Learn more