Search code examples
talend

How to run different sub job based on number of input values Talend


I am passing some values Jenkins to Talend to run job.

I would like to run different sub job if there is one input value and another job if there are 3 input values.

Is there a way I can do that in Talend ?


Solution

  • Use a tJava to analyze / verify how many parameters / input values you have, create a global variable that holds the type of the job, then using if links trigger the right job using tRunJob ((String)globalMap.get("jobToRun")).equals("single")