What is the difference between OnSubjobOK and OnComponentOK

author
Shicong Hong
EnrichVersion
6.4
6.3
6.2
6.1
EnrichProdName
Talend Open Studio for ESB
Talend Data Fabric
Talend ESB
Talend Open Studio for MDM
Talend Big Data Platform
Talend Big Data
Talend Open Studio for Data Integration
Talend Real-Time Big Data Platform
Talend Data Integration
Talend MDM Platform
Talend Open Studio for Big Data
Talend Data Services Platform
Talend Data Management Platform
task
Design and Development > Designing Jobs
EnrichPlatform
Talend Studio

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.