Validation scripts
A validation script is an attribute of a Validation Rule asset. The script contains the validation logic, which expresses a single condition to evaluate the asset. The outcome of the evaluation is binary:
- valid: The validated asset meets the condition.
- invalid: The validated asset doesn't meet the condition.
Depending on the result, a custom message can also be shown.
Validation scripts are written using a syntax that is based on Groovy, but enhanced specifically for validation rules in the Collibra Platform.
Tip For general syntax-related questions, you can always refer to the Groovy syntax.
Within the validation script, you can use the following features:
- Aggregate functions
- Validation functions
- Multi-line boolean expressions
- Collections in validation script
- Closures