Implicit context load - OS variable value change for different environments

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.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now