How to define properties and enumerations
Add a property to an element type
Section titled “Add a property to an element type”- Select the M2 element type in the Explorer
- In the Properties panel, find the properties section
- Click to add a new property
- Set the name (e.g., “Lifecycle Status”)
- Set the data type — String, Integer, Real, Boolean, Date, DateTime, or an enumeration
- Set the multiplicity —
1..1(required) or0..1(optional) - Optionally set a default value
The property now appears on all M1 instances of this element type.
Create an enumeration
Section titled “Create an enumeration”- Right-click the Enumerations package in your metamodel
- Select New Enumeration
- Rename it (e.g., “System Status”)
- In the Properties panel, add literal values:
- Each literal has a name (display label) and a value (stored value)
- Example: Name = “Active”, Value = “active”
Use an enumeration as a property type
Section titled “Use an enumeration as a property type”When adding a property to an element type, select your enumeration from the type picker. It appears alongside the primitive types. The property renders as a dropdown in the Properties panel and in catalogs.
Add format hints to string properties
Section titled “Add format hints to string properties”String properties support format hints that change how they’re displayed:
| Hint | Effect |
|---|---|
| multiline | Renders as a textarea |
| url | Renders as a clickable link |
| Renders as a clickable mailto link |
Add properties to relationship types
Section titled “Add properties to relationship types”The process is identical — select a relationship type and add properties in the same way. Relationship properties appear in the Properties panel when an edge is selected.