What is the difference between OnSubjobOK and OnComponentOK
OnSubjobOK and OnComponentOK are
trigger links, which can link to another subjob.
A subjob is a self-contained subset of a larger Job, composed of components and links.
This example shows a Job with three subjobs:
The main difference between OnSubjobOK and
OnComponentOK lies in the execution order of the linked subjob.
- With OnSubjobOK, the linked subjob starts only when the previous subjob completely finishes.
- With OnComponentOK, the linked subjob starts when the previous component finishes.
The execution order of subjobs linked by OnComponentOK is within the execution cycle of the previous subjob.
Note: Only the first component of a subjob can use the
OnSubjobOK link.
In this example, Subjob 2 starts when tLogRow_1 finishes and
Subjob 3 starts when both Subjob 1 and Subjob 2 end, because Subjob 2 runs within the
execution cycle of Subjob 1.