Implicit context load - OS variable value change for different environments

Highlighted
Seven 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?


Accepted Solutions
Community Manager

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.


All Replies
Community Manager

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.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads