Definging a condition in the WHEN statement - 7.3

Talend Administration Center User Guide

EnrichVersion
7.3
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
EnrichPlatform
Talend Administration Center
task
Administration and Monitoring

About this task

To define a condition in the WHEN statement, do the following:

Procedure

  1. Click the green + button next to WHEN to open the Add a condition to the rule dialog box.

    Example

  2. Select a class from the list, LoanSimulator in this example, and then click OK.

    Example

  3. Click There is a LoanSimulator to open a dialog box and set a variable name.

    Example

  4. In the Variable name field, enter a variable name, customer in this example, and click Set.
    The variable name is written in the WHEN statement.

    Example

  5. Click There is a LoanSimulator customer to open the Modify constraints dialog box.

    Example

  6. From the Add a restriction on a field list, select age to add an age field to the WHEN statement.

    Example

  7. From the logical operators list, select a logical operator, less than in this example, and then click the pencil icon to open the Field value dialog box.

    Example

  8. Click the New formula button to add a value field next the logical operator, and enter 20 in the field.

    Example

  9. Click the arrow icon next to the value field to add another logical operator list, select or greater than from the list, and set the value to 70.

    Example

What to do next

Then, in the THEN statement, select the action (true or false) you want to take and set the reason for the selected action.