Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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.
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 🙂
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.
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:
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.
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.
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 🙂
Hi,
Regards,
Avinash Pentyala