Using implicit context loading to load contexts
This method is very similar to the one discussed previously, that the context data is external to Talend, but differs in the fact that the context data is loaded automatically for every job in a project.
Getting ready
Open the jo_cook_ch06_0030_implicitContextLoad
job.
How to do it...
The steps for using implicit context load to load contexts are as follows:
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
C:/cookbookData/chapter6/chapter6_jo_0020_cookbookContextFile.txt
.Set the Field Separator to
=
.Click on the Print operations box.
Click on Ok to finish.
Run the job, and you will see the context data being loaded and the warnings being produced.
How it works...
The implicit context load functionality reproduces the code in the previous exercise for all jobs in the project...