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:
- Open the Validation Rule asset.
- Optionally, switch on the Show empty optional values option.
- 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.
- Click
Save.