Prev | Next |
Define Properties of Operations
You create operations for an element on the 'Operations' page of the Features window, and provide a basic set of properties. You can simply create a number of operation names if you want to create operations quickly and not necessarily fully define them as you create them. You provide the more detailed properties of the operations using the operation 'Properties' dialog.
Operations of State elements are managed differently - there are three operations (Enter, Do and Exit) that are defined on the 'Behavior' tab of the Features window. This tab displays only when the selected element is a State. Similarly, if the element is a Database Table, the 'Operations' tab is replaced by a 'Constraints/Indexes' tab.
Access
Click on an operation in the Browser window or a diagram.
Ribbon |
Design > Element > Editors > Features > Operations Design > Element > Editors > Element > Properties Dialog |
Context Menu |
Right-click on the parent element | Features | Operations or (Browser window) Right-click on the operation| Properties | Properties (Diagram) Right-click on the operation | View Properties |
Keyboard Shortcuts |
|
Create and define Operations ('Operations' tab, Features window)
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 of the 'Properties' dialog for the operation. |
Define Parameters |
Return Type |
Defaults to 'void'. 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. |
Data Types
Select |
Scope |
Click on the drop-down arrow and select one of:
|
|
Stereotype |
(Optional) Define one or more stereotypes for the operation; either:
If you select multiple stereotypes, they are listed on separate lines of the 'Stereotype' field. |
Stereotype Selector |
Alias |
(Optional) Type an alternative name or reference for the operation. |
Context Menu options
Right-click on the 'Operations' tab of the Features window.
Option |
Action |
See also |
---|---|---|
Add New |
Add a new operation to the list, with default values in the dialog fields. Shortcut: |
|
Operation |
On the 'Behavior' tab for a State element, opens the 'Operation' dialog to add the details of the selected behavior operation. |
Properties Window for Operations |
Copy as New |
Copy a selected operation as a new operation. Provide a new name for the operation and click on the . Shortcut: |
|
Properties |
Display the 'Properties' dialog for a selected operation. The 'Operation' tab of the 'Properties' dialog has the same fields as the Properties window for operations. |
|
Properties Window |
Display the Properties window for a selected operation. Shortcut: |
Properties Window for Operations |
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. Shortcut: |
|
Move down |
Move the selected operation one row down the list. Shortcut: |
|
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. |
List Header |
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 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. Shortcut: |
|
Help |
Display the Help topic pertinent to the current tab. |