Terminating a Job Based on a Condition

The Terminate Job stage is used in combination with Conditional Router to end a job if certain criteria are found within a record. If a record is sent to Terminate Job, the job ends.

Note: Terminate Job is not available in services or subflows.

To use Terminate Job, add a Conditional Router and a Terminate Job stage to your dataflow. Then connect the stages and configure the Conditional Router. The Conditional Router should be configured to contain the criteria you want to trigger job termination. When a record is found that meets the criteria, it is passed to Terminate Job and the job terminates, producing a message that says "Job terminated by stage: <stage label>." The completed dataflow should look something like this: