Skip to content

Create entity record constraint

Since Entity record constraints concern more than one attribute, they are assigned to an entity instead of an attribute. The regular expression is formulated as Should Comply To boolean expression.
In the example below, this means that all records for which the value of Valid From is smaller than the value of Valid To are returned.

Entity Record Constraints explicitly define the columns used - case sensitive. Columns are identified by their code.

To create an entity record constraint:

  1. Go to the Object Browser
  2. Right mouse click on the name of the logical validation model: New > Entity Record Constraint
  3. The window Entity Record Constraint Properties appears. Assign a meaningful and consistent name.
    Entity record constraint
  4. Enter the functional definition as comment
  5. Click on the tab Expression Expression
  6. Define your expression
  7. For example, if you want to check if the Valid End date is later than the Valid Start date.
  valid_to > valid_from
  1. Press OK when finished