a. Right-click the Model, Package or Stereotype you want to own the Tag Definition.
b. Point to New, and then Tag Definition.
Or:
Point to New, point to UML, point to Profiles, and then click Tag Definition.
c. Name the Tag Definition as required.
If you want the display name of the Tag Definition in Modeler to be different from its real name: on the General tab of the Tag Definition's property pages, type the display name in the Name Alias box.
2. On the Tag Definition's Property Pages, click the Type tab.
3. Select the required Data Type (you cannot select Rich Text for a derived Tag Definition).
4. Select the Derived check box.
5. Click the Derivation Script tab, and then type the derivation script.
If you want to change the text in a larger window with the Text Format Toolbar available, click the Editor button. For more information about working with scripts, see: