You can create your own validation rules in the model and use them to check your model or keep them only for documentation purpose. You can locate new validation rules anywhere in your model, but usually they are created for the classifier, stereotype, or metaclass.
To create a new validation rule
- Create new Constraint element.
- Apply «validationRule» stereotype.
- Specify Constraint Element property.
- Specify the validation rule properties.
- Define Constraint expression.
The new validation rule is created in the model.
Managing new validation rule
You can include a new validation rule to your own created validation suite.
You can manage new validation rules in your model as any other elements.