You must ensure that the constrained element is specified and points to the necessary classifier. Each validation rule modeled as a Constraint has a Constrained Element property. This property determines the type of element this rule applies to. If you , this property is filled automatically. Otherwise, you need to specify it manually, shown in the following procedure:
To specify a constrained element manually
- Open the Constraint Specification window. How to open the Specification window >>
- Find the Constrained Element property and select it's value box.
Clickand select an appropriate element from the Select Elements dialog.
For constraints on metaclasses, select an appropriate element from the UML Standard Profile > UML2 Metamodel. Only the single Constrained Element property value is supported for validation rules.
The Constrained Element property value is specified.