jmf
jmf

Reputation: 396

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 ?

Upvotes: 0

Views: 147

Answers (1)

Balazs Gunics
Balazs Gunics

Reputation: 2067

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")

Upvotes: 1

Related Questions