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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[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?
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

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
0683p000009MDOg.png

View solution in original post

5 Replies
Anonymous
Not applicable
Author

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
0683p000009MDOg.png
_AnonymousUser
Specialist III
Specialist III

nicely explained!!
Anonymous
Not applicable
Author

Nice explanation!!
Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

Hi Sabrina,

As with the explanation to the subjobOk and componentOk, I have my flow executed as if I was using subjobOk, although I am using componentOk. Please find the attached.

 

I am reading CSV file and for every line in the CSV file, I want the read MongoDB for matching value from the CSV record. But the read Mongo is invoked only for the last CSV record in the file.

 

0683p000009M2nD.png

 

Here is the output: MongoId is printed only once while there are 2 matching records for each row of CSV file.

 

[statistics] connecting to socket on port 3859
[statistics] connected
MEPMD01|20080501|SENSUS|EVLE:133000|19106092|16303440|201810032226|76487451|OK|W|GALREG|1.0|100|2|201811020000
MEPMD01|20080501|SENSUS|EVLE:133000|19106092|33022429|201810032226|76487451|OK|W|GAL|1.0|100|2|201810030100
_id: 5c6efb0105ef8d02e6061b3d|meters: [ "AL280035" , "33022429"]|customer_node_reference: 8932500807
[statistics] disconnected


TalendFlow.PNG