CondValidateReport - 7.3

Talend Data Mapper Functions Reference Guide

Version
7.3
Language
English
Product
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development > Designing Jobs
Last publication date
2023-01-05

Conditionally reports on a validation result.

The CondValidateReport function is used to report some kind of validation problem, for example if a value is not within certain limits. It can be called in any type of expression. The report is done to the results of the execution of the map, which is shown through the GUI or can be accessed using the runtime API.

This function is typically used as the root of a validation expression to provide richer reporting of a validation problem. A validation expression accepts a Boolean value, if true, the validation succeeds and nothing is reported, if false, the validation fails.

Arguments

Condition Specify the condition for the validation to succeed. If it is true, the function does nothing. If it is false, the function reports a validation result. The value of this condition is also returned as the value of this function.
Data Specify the data to be associated with the validation report. These are reported as name/value pairs in the validation report.

For example, if you use a map element in this argument, the report will return the name of the element and its value.

You can set a name and value using the Property function.

Properties

Message Enter a message describing the validation issue.
Severity Select the severity of the validation issue which is either informational, warning, or error.
Number Enter a number that identifies the validation issue.