Five Stars

Implicit context load - OS variable value change for different environments

we are pointing to "localhost" in target/exec and using the system.getenv("os_variable") method in "implicit context load" to retrieve the context file. The problem is, there are users who needs to run the jobs pointing to different environments from their machines, so every time they want to point to a different context file they are manually changing the "os_variable" value each time in the operating system, some times they are forgetting to change the value and eventually the job gets ran in the wrong environment, any way to avoid this?

  • Data Integration
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Eleven Stars

Re: Implicit context load - OS variable value change for different environments

Hint: In the Implicit Context Load configuration you can use the result of Talend routine method calls. 

Basically, you can write a routine which has methods which can mitigate for this. So when the job is started, you can dynamically change the values being supplied according to whatever logic you can code in Java.

Rilhia Solutions
1 REPLY
Eleven Stars

Re: Implicit context load - OS variable value change for different environments

Hint: In the Implicit Context Load configuration you can use the result of Talend routine method calls. 

Basically, you can write a routine which has methods which can mitigate for this. So when the job is started, you can dynamically change the values being supplied according to whatever logic you can code in Java.

Rilhia Solutions