Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
sdcosta1983
Contributor
Contributor

Talend Route: How to pass Global variable value from one cTalendJob to another cTalendJob

Hi

I have a scenario to use more than on cTalendJob.

In first cTalendJob, I am getting values from API and assigning them in the Global Variable component.

In the second cTalendJob, I want to receive those Global variables and need to do further process.

But unfortunately i stuck to achieve. Can any one please shed some ideas or solution to achieve

Thanks,

Sam

Labels (2)
1 Reply
Anonymous
Not applicable

Hello,

Talend Context variables in route URIs can be supplied at deployment time. Talend also uses CamelContext within its code.

Set CamelContext in cConfig. The example below, you can use getContext to get the existing context:

CamelContext my_camelContext = getContext();

System.out.println("DEBUG: " + my_camelContext.getName());

Let us know if it helps.

Best regards

Sabrina