Passing Parameters From Parent Job to Sub Job/Transformation in Pentaho Data Integration (Kettle) -Part 2
In part 1, I have mentioned about passing parameter values down to sub-job/transformation using setter/getter methods.
Please refer my previous post for part 1 Passing parameters from parent job to sub job/transformation in Pentaho Data Integration (Kettle) -Part 1
But in this part we will use executor steps to do the same process.
Part 2 : Using job/transformation executor steps :
In order to pass the parameters from the main job to sub-job/transformation,we will use job/transformation executor steps depends upon the requirement.
Following are the steps :
1.Define variables in job properties section
2.Define variables in tranformation properties section
3.Configure job/transformation executor step
1.Define variables in job properties section :
Right-click any where on your job and select settings and go to parameters section.Define all the variables and assign some default values to each.
2.Define variables in transformation properties section :
Right-click any where on your sub job/transformation and select settings and go to parameters section.
Use the same variables that you have defined in your parent job (i.e.Step1) and assign some default values to each.
3.Configure job/transformation executor step :
In this step,we have to configure sub job/transformation path details and need to pass the same parameters in job entry details section like below.
Double click on job/transformation executor step and provide transformation file path details.
Go to parameters section and make sure you have checked the Pass all parameter values down to the sub-transformation check box.
So now you can utilize same variables in your sub-transformation.
Best Open Source Business Intelligence Software Helical Insight is Here