CondValidateReport - 6.3

Talend Data Mapper User Guide

EnrichVersion
6.3
EnrichProdName
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend Studio

Name

CondValidateReport

Purpose

Conditionally report on a validation result.

Description

This 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.

Return Type

Boolean

Argument

Condition (Boolean)

A condition, if true causes the function to do nothing. If false, cause the function to report a validation result. The value of this condition is also returned as the value of this function.

Argument

Data (Simple (variable))

Any number of expressions that data to be associated with the validation report. These are reported as name/value pairs in the validation report. If an expression specified here is a [map] element reference, the name is taken to be the name of the [map] element and the value is the element's value. Use the Property function with other types of expressions to provide the name label in the validation report.

Property

Severity

The severity of the validation issue which is either informational, warning, or error.

Property

Message

An optional number that identifies the validation issue.

Property

Error Number

An optional number that identifies the validation issue.