Page 1 of 1

constraint for each output link

Posted: Fri May 16, 2008 7:44 am
by cetzhbo
Hello Gurus,

for transformer stage, constraint for each output link is in effect before derivation or after derivation of output column?

thanks very much!

Posted: Fri May 16, 2008 7:52 am
by ray.wurlod
Output column derivations are only performed if the link's constraint expression is satisfied.

Posted: Fri May 16, 2008 7:59 am
by OddJob
Looking at the generated C++ from a transformer, things happen in the following order:

Stage Variables evaluated

Constraint evaluated
If Constraint is True, the output column derivations are performed
If Constraint is False, output for column is skipped - no derivations are made

Hope this helps!

Posted: Fri May 16, 2008 8:57 am
by cetzhbo
thanks, but does stage variable/constraint/output derivation are evaluated row by row ?

Posted: Fri May 16, 2008 9:08 am
by chulett
Yes.

Posted: Fri May 16, 2008 12:27 pm
by cetzhbo
thanks, I got it