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: 
Anonymous
Not applicable

Implicite context load only if null

Hi there,

 

Is there a possibility, using the implicite load defined in the project properties, to only load a variable if it is null or empty ?

 

I have the following problem :

 

job 1 (father)

--> job 2

      --> job 3

 

job 1 is the father of job 2, which is the father of job 3.

 

I want to launch job 1 or only job 2, depending on what I want to do.

If I change a context var in my job 1 and send it to job 2 using "Transmit whole context" option, job 2 is going to reload the variable because the implicite load option.

But I need this option if I only want to launch job 2...

 

Thanks for your help !

Labels (2)
1 Solution

Accepted Solutions
akumar2301
Specialist II
Specialist II

did you try to remove "Use Project Setting"(Job Setting --> extra)   and remove implicit contectLoad (Job2 and Job3) only for child jobs (Job2 and Job3)?

 

If you cannot do above , you might have to override all child context after it is defined by implicit.

For that you would need to pass all Parent context to child through HashMap.

https://community.talend.com/t5/Design-and-Development/resolved-tBufferOutput-java-util-HashMap-cann...

 

And after child implicit context loaded , then override each of your child context with Parent HashMap Value.in Tjava.

 



Let me know if it works.

View solution in original post

4 Replies
dipanjan93
Contributor
Contributor

Could you please explain about your scenario in detail?

akumar2301
Specialist II
Specialist II

did you try to remove "Use Project Setting"(Job Setting --> extra)   and remove implicit contectLoad (Job2 and Job3) only for child jobs (Job2 and Job3)?

 

If you cannot do above , you might have to override all child context after it is defined by implicit.

For that you would need to pass all Parent context to child through HashMap.

https://community.talend.com/t5/Design-and-Development/resolved-tBufferOutput-java-util-HashMap-cann...

 

And after child implicit context loaded , then override each of your child context with Parent HashMap Value.in Tjava.

 



Let me know if it works.

Anonymous
Not applicable
Author

Thank you for your answer,

 

I get it in another discussion, you have to desactive the implicite context load in all the sub-job, which was what I was questionning.

 

Thanks !

akumar2301
Specialist II
Specialist II

Indeed this what I meant when asked to remove implicit context from child job

Please mark the topic as resolved