Validation Rules

Last update: Download PDF Edit

Validation rules are conditions that should be satisfied before an object is committed. If a condition defined by a validation rule is not satisfied when the object is committed, the server generates a validation error. If the object was committed using a form, this results in a validation message. When committing an object in a microflow, this results in an error that can be handled using custom error handling. In all other cases, a validation error results in a Java exception being thrown.

General Properties


This property defines the attribute to which the validation rule applies. An entity can specify validation rules for its own attributes, or for attributes of one of its generalizations.

Error message

This property defines the message that is displayed to the end user when the attribute value does not satisfy the condition defined by the validation rule.

Rule Properties


The rule defines which condition an attribute should satisfy.

Option Description
Required The attribute needs to have a value. It cannot be emtpy.
Unique The attribute should have a value that is unique compared to the values of this attribute in all other objects of the same same entity.
Equals The attribute value needs to be equal to a specified value or equal to the value of another attribute of the same object.
Range The attribute value needs to be in a range between specified values or between the values of other attributes of the same object.
Regular expression The attribute needs to match a regular expression.
Maximum length The attribute may have no more than the specified number of characters.

Default value: Required