HCL Workload Automation, Version 9.4

Multiple pause and release actions scenario

Use the multiple pause and release actions scenario to run a sequence of corrective actions and exit the corrective branch when any of them is successful. When a correction completes successfully, the branch job cancels the remaining corrective actions and releases the OKbranch.

Multiple pause and release actions usage

Figure 1 shows the job stream definition.

Figure 1. Multiple pause and release scenario definitionDefinition of a job stream with a branch containing a sequence of corrective actions.

You must set the parameter ACTION_SWITCH=PAUSE for all the branch jobs except the last one. Therefore, in this scenario, branch jobs BRANCH_1, BRANCH_2, and BRANCH_3 must have ACTION_SWITCH=PAUSE. If you do not specify this parameter, the good child is canceled by one middle branch job.

All branch jobs must point to the same good child.

Ensure that each branch job has a different suffix. For example, in this scenario the names BRANCH_1, BRANCH_2, BRANCH_3, and BRANCH_4 are used.

The best practise is to set the ABEND job as the bad child of the last branch job. The ABEND job calls the system command exit 1. This causes the job to ABEND and its status is propagated to the job stream level.