Manage validation rules

Validation rules help you check if assets meet specific criteria. A validation rule is an asset of type Validation Rule with a Validation Script attribute that contains the script used to evaluate assets.

You create a validation rule by creating an asset of type Validation Rule, following the same steps as creating any other type of asset. Before you start, ensure that a domain of the type Validation Rule Domain exists.

You can also delete a Validation Rule asset the same way you delete any other type of asset.

Note You can't delete a Validation Rule asset if it is assigned to an asset type.

Edit a validation rule

You can edit a validation rule by updating the Validation Rule asset properties, including the validation script if you have at least a resource role with the Asset > Attribute > Update resource permission:

  1. Open the Validation Rule asset.
  2. Optionally, switch on the Show empty optional values option.
  3. Edit the information:
    Description
    The description of the asset including, for example, an explanation of the script logic.
    Validation Script
    The Groovy script that contains the evaluation condition.
  4. Click Check icon Save.