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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access