Page 1 of 1

Constraint as a Stage Variable

Posted: Tue Feb 28, 2006 4:11 pm
by gateleys
I have the same constraint for outlink1 and outlink2. Now, I have 2 simple ways of enforcing the constraint-
1. Specify the same in the constraint field of outlink1 and also in outlink2.
2. Or, I could declare a stage variable, svMyConstraint, whose derivation field contains the constraint. And, the stage variable svMyConstraint is specified as the constraint in each output links.

My question is: In the second method, for every row, will the constraint be computed ONLY ONCE for svMyConstraint, and evaluate TRUE/FALSE for the output links?

In simpler terms, will the first method execute 2 times (once for each output link), and the second method execute only once?

Thanks.
gateleys

Posted: Tue Feb 28, 2006 4:21 pm
by ArndW
Use the stage variable, it will only be computed once per row.

Posted: Tue Feb 28, 2006 4:22 pm
by gateleys
Thanks Arnd.