Run If

In Chapter 6, Managing Files, we created a job that checked for the existence of a file before it tried to process the file (good coding practice!). This used a Run If connector and readers who have already worked through this example will be familiar with its purpose and configuration.

Run If triggers a subjob or component when a defined condition is met, the existence (or non-existence) of a file, if the number of rows returned is greater than 100, and countless other conditions.

A Run If connection is made by right-clicking on the source component, selecting Trigger | Run If, and dropping the connector onto the target component. Click on the connector and enter a condition expression, in Java, into the Condition box.

Condition expressions ...

Get Getting Started with Talend Open Studio for Data Integration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.