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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
desanip
Contributor
Contributor

Pass Tcontextload values to parent job

Hello everyone,

 

I am trying to load database parameter values from an external file to tcontextload  and then used a  tBufferOutput in the child job to push the informations Iwant to return to the parent job.

The schema of the tBufferOutput is be the same as the one which is declared for the tRunJob.

 In the parent job i have redshift and aws components that i have to connect to.Can someone tell me how to set context variables in code (in tJava) components? 

 

If someone can send me the job flow or how it should look like, it would be great.

Thanks.

Labels (4)
11 Replies
desanip
Contributor
Contributor
Author

I will try to explain to the best of my abilities:

I am trying to bring in the context from outside of the talend job(Storing all the context in properties file). So i am loading all the context using tcontextload and then using tcontextdump and then encoding the password and then to ttbufferout . I am fine until here. So i want to make this a resuable job and use this in all the exising talend jobs i have and use the context in s3 and redshift components.. So i am using trunjob in the parent job. I have not checked the "transfer all context".

 

From here on, I am having the problem. You said connect the tcontextload to trunjob in parent, I did the same and it doesn't seem to work. Do you think what you see in the data flow screenshot is, right?


job5.PNG
job7.PNG
desanip
Contributor
Contributor
Author

Thanks aravind and everyone who replied.
The job is working now as expected.