Prev | Next |
With Predefined Tag Types (Legacy Profiles)
Tagged Values define a wide range of properties and characteristics of a model element, and some of these properties have complex or structured values. For example, you might want your user to select a value between upper and lower limits (using 'Spin' arrows), set a date and time, select a color from a palette, or work through a checklist.
You create these complex Tagged Values from any of a number of predefined simple Tagged Value types and filters, some of which you might have created yourself, using the 'Tagged Value Types' page of the 'UML Types' dialog - 'Settings > Reference Data > UML Types > Tagged Value Types'. You assign the Tagged Value Type in the Notes of the Tagged Value (using the definitions listed in the Predefined Structured Types Help topic).
Note that this method is supported for maintaining existing profiles and MDG Technologies, but for new or incomplete profiles we recommend that you use Data Type elements - see the With Predefined Tag Types Help topic.
Using a Data Type element helps you define Tagged Values that are specific to the profile, so you can create Tagged Values of different types with the same name in different profiles without conflict in running the MDG Technologies derived from those profiles. Tagged Values created in the 'Tagged Value Types' page apply throughout the model, and all tags with the same name must be of the same type. This can hinder you in creating more than one profile in the model, when they use these global tags and one or more of them clash, both in the technology development model and in any model in which the technology is enabled.
Assign Tagged Values to Stereotypes
Having created a structured Tagged Value, you assign it to the Stereotype element in the same way as for simple Tagged Values, by creating an attribute in the Stereotype element with the name of the Tagged Value Type. For example, to make the Tagged Value 'Handicap' appear in a stereotype, create an attribute named 'Handicap'. Depending on the tag type, you can set the default value for the tag by giving the attribute an initial value.
