2.4.7 Controlling the execution order of a root jobnet (example of defining a jobnet that uses a jobnet connector)
Use jobnet connectors to define a process flow with characteristics like the following:
-
A root jobnet jobnetA with a daily schedule is executed after a daily job jobA.
-
A job jobB is executed after the root jobnet jobnetA.
-
A root jobnet jobnetB with a weekly schedule is executed only on Sundays after jobnetA.
This example assumes that the root jobnets jobnetA and jobnetB have already been defined to execute on a daily and weekly schedule, respectively.
The following figure shows an example of defining jobnet connectors.
|
First, create the root jobnet jobnetS, which incorporates the jobnet connectors. Then, create a job flow in which jobA, jobnetA, jobnetB, and jobB are executed sequentially. Associate the root jobnets jobnetA and jobnetB with the jobnet connectors JC1 and JC2, respectively, and define a job flow in which jobA, JC1, JC2, and jobB are executed sequentially. Then, specify jobnetA as the connection-destination jobnet for JC1, and jobnetB as the connection-destination jobnet for JC2. Assign a schedule for daily execution to the root jobnet jobnetS.
Next, in the definitions of the connection-destination jobnets (jobnetA and jobnetB), specify the appropriate settings including the corresponding jobnet connector name and the method of execution order control. Use Yes as the Exec. order control setting for both root jobnets. As the jobnet connector name, specify JC1 for jobnetA and JC2 for jobnetB. When setting the execution order control method for each jobnet, specify whether the jobnet is to be executed in synchronization with the jobnet connector.
When you have finished defining the jobnets with jobnet connectors and their connection-destination jobnets, register them for execution. At this point, connections are established between generations that share an execution date according to the connection rules, and processing is executed in the defined order.