One Star

setting multiple implicit context variable for separate environment

Hi
I've one talend job but want to  run that job in two environments. TEST and PROD

In implicit context variable we have options get credentials from file. Is there any way to set two files for credentials, one for test and one for prod in same job. 

I don't want set values of context variables in context tab of a job.
3 REPLIES
Fifteen Stars

Re: setting multiple implicit context variable for separate environment

Why not specify the path to the file using a context variable. Then set a path for TEST and one for PROD using that context?
https://help.talend.com/search/all?query=Context+settings&content-lang=en
Rilhia Solutions
One Star

Re: setting multiple implicit context variable for separate environment

Hi rhall_2.0
Thanks for your response. 
I'll try this way as well
Tell me one thing that how to integrate implicit context variable tab in job. Because whenever I click on design ground, it shows properties are not available. 
I have added  implicit context variable File > Edit Project properties  Job Settings > Implicit context load.

So whenever I run any job context variable set up at above path comes into play as well.
I want separate  implicit context variable for separate job. But not able find any way to integrate in individual jobs. Checked on view as well.
Cany ou help me ?
Fifteen Stars

Re: setting multiple implicit context variable for separate environment

I see. I think that maybe using a tContextLoad component at the beginning of your jobs may be a better solution for you. It is similar to using the implicit context load, but you can tailor it a little more.
Take a look here: https://help.talend.com/search/all?query=tContextLoad
All you would need would be one context variable set inside your job which would point to the location of context file you are loading in. I have used this method a lot. Give it a try and you will see how useful it is.
Rilhia Solutions