After the Constraint element is created, you must apply:

  • «validationRule» stereotype. It is derived from the «invariant » stereotype. It expands the Constraint properties with the ability to specify the following information: severity level (for sorting/filtering), abbreviation string (a short string, for easy recognition) and error message (complete description of error explanation). How to specify the validation rules properties >>