Prev Next

Operation Tagged Values

Both operations and the parameters assigned to operations can have Tagged Values associated with them. Tagged Values offer a convenient extension mechanism for UML objects, so you can define any tags you need and then assign values to them using this form.

Tagged Values are written to the XMI output, and can be input to other third party tools for code generation or other activities.

You can add and edit Tagged Values on an operation or parameter using either the:

  • 'Tags' tab of the Properties window for the operation or
  • 'Tagged Values' tab of the 'Properties' dialog for the operation

If the operation has any parameters, the parameter names and Tagged Values are listed on the 'Tagged Values' or 'Tags' tab underneath the Operation name and Tagged Values.

Access

Click on the operation in either a diagram or the Browser window.

Ribbon

Design > Element > Editors > Properties > Tags    (Properties window)

Start > Desktop > Design > Properties > Tags   (Properties window)

Keyboard Shortcuts

Ctrl+2 > Tags  (Properties window)

(On a diagram) Enter > Tagged Values ('Properties' dialog)

(In the Browser window) Enter | Properties > Tagged Values  ('Properties' dialog)

Add a Tagged Value for an operation or parameter

Step

Action

See also

1

Click on the operation or parameter to which to assign the Tagged Value.

2

Click on the New tag button. button in the Toolbar at the top of the panel.

The 'Tagged Value' dialog displays.

3

In the 'Tag' field, type the tag name (or select a defined tag from the drop-down list).

In the 'Value' field type the initial tag value. (For some types of Tagged Value, the 'Value' field is grayed out. In this case, continue to step 4 and then enter the value against the tag value on either the 'Tags' tab of the Properties window or the 'Tagged Values' tab of the 'Properties' dialog.)

4

Click on the OK button to confirm the operation.

Notes

  • Tagged Values are supported for attributes, operations, objects and connectors
  • You can define custom tags using a predefined Tagged Value Type

Learn more