[resolved] subjob vs component

One Star

[resolved] subjob vs component

hi,
could anyone point me in which page in the manual that explains this?
what is the difference between subjob ok and component ok? would the outcome be different?

Accepted Solutions
Moderator

Re: [resolved] subjob vs component

Hi,
OnSubjobOK and OnComponentOK are trigger links, which can link to another 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: see pic
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 exectuion cycle of the previous subjob. In this example, subjob 2 starts when tLogRow_1 finishes; subjob 3 starts when both subjob 1 and subjob 2 end, because subjob 2 runs within the execution cycle of subjob 1.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

All Replies
Moderator

Re: [resolved] subjob vs component

Hi,
OnSubjobOK and OnComponentOK are trigger links, which can link to another 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: see pic
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 exectuion cycle of the previous subjob. In this example, subjob 2 starts when tLogRow_1 finishes; subjob 3 starts when both subjob 1 and subjob 2 end, because subjob 2 runs within the execution cycle of subjob 1.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] subjob vs component

nicely explained!!
One Star

Re: [resolved] subjob vs component

Nice explanation!!
Moderator

Re: [resolved] subjob vs component

Hi guys,
Here is a KB article about:TalendHelpCenter:What is the difference between OnSubjobOK and OnComponentOK?.
Best regards
Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.