So I created this quick job and strangely, even after getting confirmation that the variables have been loaded, I can't seem to read the variables using context.<var_name>. What am I doing wrong?
The input file has just one variable 'temp_var' with value set to 'passed' (temp_var=passed). While loading the job, I also see the info in the talend log window (tContextLoad_2 set key "test_var" with value "passed"). Further, I can use the context.containsKey("test_var") construct and it yields 'true' in the Java Node. But the moment I try to run the following command, it fails:
System.out.println("Value of var test_var read from context " + context.test_var);
Solved! Go to Solution.
Watch the recorded webinar!
Create systems and workflow to manage clean data ingestion and data transformation.
Introduction to Talend Open Studio for Data Integration.
Test drive Talend's enterprise products.