Validation scripts
A validation script is an attribute of a validation rule asset. It contains the validation logic, which expresses a single condition to evaluate assets.
The outcome of the evaluation is binary:
- valid: The validated asset meets the condition.
- invalid: The validated asset does not meet the condition.
Depending on the result, it can also show a custom message.
Validation scripts are written using a syntax that is based on Groovy, but enhanced specifically for validation rules in Collibra Data Intelligence 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