Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
ankit7359
Creator II
Creator II

OnSubJobOk vs OnComponentOk!!!

Hi All,

Merry Christmas,

Well i was wondering about the triggers in talend and those were OnSubjobOk and OnComponentOk which troubled me and my query on this is -> when OnSubjobOk on initial component(Starting component) and OnComponentOk is placed on last component... will they produce the same behavior???

OnSubJobOK and OnComponentOk(placed on last component of the Job or the Target component of the sub-job).

Pls let me know your opinions on this..

Thanks,

Ankit

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Ankit,

 

    Even if you are adding On Component Ok at the last part, its behavior is totally dependent on the predessor component.

 

    For example, in the below job, I am creating a sequence from 1 to 5 and printing them in iteration. On Component Ok is executed 5 times here but On SubJob OK is executed only once.

0683p000009M25Q.png

 

 

Hope I have answered your query 🙂

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

4 Replies
Anonymous
Not applicable

hello Ankit, 

OnSubjobOK and OnComponentOK are trigger links, which can link to another subjob. The main difference between them 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.

 

What is a subjob?

A subjob is a self-contained subset of a larger Job, composed of components and links.

The following diagram shows a Job with three subjobs:

0683p000009LuBf.png

The execution order of subjobs linked by OnComponentOK is within the execution cycle of the previous subjob. In this example, subjob 2 starts when tLogRow_1finishes; subjob 3 starts when both subjob 1 and subjob 2 end, because subjob 2 runs within the execution cycle of subjob 1.

Only the first component of a subjob can use the OnSubjobOK link.

ankit7359
Creator II
Creator II
Author

Thanks for the quick reply!!!
But i was presumably asking for the behavior of the component like when onSubjobOk is used then we have to wait until the whole subjob completes on the other hand when it is connected on OnComponentOk at the last component of the subjob does it exhibit OnSubJobOk behavior ????
Thanks,
Ankit
Anonymous
Not applicable

Hi Ankit,

 

    Even if you are adding On Component Ok at the last part, its behavior is totally dependent on the predessor component.

 

    For example, in the below job, I am creating a sequence from 1 to 5 and printing them in iteration. On Component Ok is executed 5 times here but On SubJob OK is executed only once.

0683p000009M25Q.png

 

 

Hope I have answered your query 🙂

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

Anonymous
Not applicable

Hi,

  • OnSubjobOK – It was available on the first component of Job and you can link to sub job when Job is a success.
  • OnComponentOK - It is available in hole jobs and you can link to the subject when component success.

Regards,

Avinash Pentyala