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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Alpha549
Creator II
Creator II

Manually include a component in a subjob / create a unique subjob with several components

Hello everyone,

 

Here is a job :

 

 

 0695b00000QDBGyAAP.png 

 

As we can see, we have 3 subjobs here. Is it possible to have one unique subjob including these 3 tJava ?

 

 

Thank you 🙂

Labels (4)
4 Replies
Anonymous
Not applicable

Hello

There are different subjobs in this job, tJava_2 and tJava_6 will trigger tJava_4 execution with onComponentError connector, so, logically, you cannot include tJava_2 and tJava_6 in a child job called by tRunJob.

 

Regards

Shong

Alpha549
Creator II
Creator II
Author

Hello @Shicong Hong​ 

 

I've updated the image to make it clearer !

What do you think ?

Anonymous
Not applicable

Move these tJava components to a child job, and use a tRunJob to call this job.

main job.

tRunJob(call the child job)

|onsubjobok

other subjob.

 

child job:

tJava1--oncomponnetok--tJava2---oncomponentok--tJava3

 

This is what you want?

 

 

Alpha549
Creator II
Creator II
Author

Yes it's a way to do so.

 

For instance, if we have this job :

 

0695b00000QDBpFAAX.png 

If an error occurs in tJava_1, tJava_4 is run.

If an error occurs in tJava_2 or 3, the job fails.

This is because tJava_1 is a subjob. tJava_2 et tJava_3 are each a subjob.

 

I would like to have tJava_1, 2 and 3 in the same subjob, so I can use a unique OnSubjobError link to run tJava_4, without using tRunJob.

 

I know that if I want to catch errors in tJava_2 and 3, I should use onComponentError link from each of them to tJava_4, also from tJava_1 instead of onSubjobError. This solution will always work.