passing context value from route to cTalendjob

Highlighted
Seven Stars

passing context value from route to cTalendjob

How can i pass context values from my route to talend job?

 

I receive file on FTP as input & based on file name, I have to generate my output file name, location & other parameter dynamically. how can I pass those to my talend job that can accept that as context value.

 

cTalendJob using context.PNG

 

I am able to update values using cProcessor however when I pass value as above, It still doesn't passed onto my job. 

 

I tried all 3 option - Use selected context, Use route context, Use Job context.

 

interesting thing is that if I put some static value in context as below, value get passed fine.

 

cTalendJob using context_static values.PNG

Forteen Stars

Re: passing context value from route to cTalendjob

@nmodi,can you try with Use Route Context?

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Seven Stars

Re: passing context value from route to cTalendjob

Yes I tried but context values doesn't get passed, if I allocate static values to context values, it does get passed.

2019 GARTNER 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

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read