Branch in a job conditional on parameter
Posted: Tue May 07, 2013 8:37 am
How can I use a parameter, say FLAG_X, to branch in two different directions in a parallel job? Eventually the two paths will converge somewhere in the job, perhaps in a Transformer. So in effect, I want to skip a section of a job based on the value of that parameter. The job would look like this:
DB2 --> check FLAG_X value --> if 1 --> go to link1 --> ... TransformerZ
--> otherwise go to link2 --> ... TransformerZ (same Transformer as above)
I've looked at Switch but it looks at a file/table columns, not parameters.
I'm also considering a Transformer to do a constraint on FLAG_X, with Otherwise, and the two paths meet at a Funnel (?) before going into TransformerZ.
Any other suggestions?
Thanks in advance.
DB2 --> check FLAG_X value --> if 1 --> go to link1 --> ... TransformerZ
--> otherwise go to link2 --> ... TransformerZ (same Transformer as above)
I've looked at Switch but it looks at a file/table columns, not parameters.
I'm also considering a Transformer to do a constraint on FLAG_X, with Otherwise, and the two paths meet at a Funnel (?) before going into TransformerZ.
Any other suggestions?
Thanks in advance.