Create Validation Rules

Validation rules are created in the Validation Rules tab of the Server Scripts section of the object definition in Application Composer.

Validation rules for the integration are defined in Groovy script files. At the beginning of each file, a set of comments is listed in the following order:

  • Name

  • Description

  • Error message

Following the comments, the body of the rule is listed. The Groovy files are displayed as rules to be created for specific objects. Use the following general procedure to create validation rules for objects.

  1. Click Navigator, and then select Application Composer.

  2. Expand the object for which you want to create a validation rule, and then click Server Scripts.

    In the Server Scripts window, the Validation Rules tab is shown by default.

  3. In the Object Rules area, click the Add a new validation rule icon.

  4. In the Create Object Validation Rule window, in the Name field, enter the rule name and description from the comments in the Groovy file.

  5. In the Error Message field, enter the error message from the comments in the Groovy file.

  6. Copy the Groovy code from the file into the Rule Definition window.

  7. Click Save and Close.