Implicit Context Load with dynamic context file path

Seven Stars

Implicit Context Load with dynamic context file path

We have requirement where we need to read context parameter values from the config file.However config file path should be  passed dynamically while calling graph from server.

Thus whatever path is passed system should read context file from that path only.

How can we achieve this in talend.

Highlighted
Community Manager

Re: Implicit Context Load with dynamic context file path

Seven Stars

Re: Implicit Context Load with dynamic context file path

couldn't get ,can you please elaborate in my scenario how to implement your logic ?

Community Manager

Re: Implicit Context Load with dynamic context file path

The trick here is that you can use Java methods (routines) in the Implicit Context Load parameters. As such, they do not need to be hardcoded. So you can write a Java class to handle selecting your appropriate context file and simply add the methods that pick the correct paths, etc, to your implicit context load params.

Community Manager

Re: Implicit Context Load with dynamic context file path

Community Manager

Re: Implicit Context Load with dynamic context file path

Four Stars

Re: Implicit Context Load with dynamic context file path

Click on File, then Edit project properties. From the dialogue box, expand Job Settings and select the option for Implicit context load. Check the option for Implicit tContextLoad. Check the option From File. Set the From File name to iTunes Login.

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

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download