This recipe shows how we can use the return codes from a child job to control the process flow in a schedule more effectively.
Open the job
jo_cook_ch11_0050_ChildReturnCodes. You will see that it is a simpler version of the job from the previous exercise.
We will begin by printing the return code from a child job.
Printing return code
tJavacomponent with the following code:
System.out.println("Return code is: "+((Integer)globalMap.get("tRunJob_1_CHILD_RETURN_CODE")));
tJavacomponent using OnSubjobOk.
Setting the return code
tDiecomponent, and link ...