Page 1 of 1

hard coded value in modifier

Posted: Tue Sep 29, 2009 9:53 am
by arnabdey
Hi

Can I create new columns in the output of a Modifier stage with hard coded values? I want to avoid using transformers. I also need to do some NullHandling along with the above mentioned requirement, which I know can be done with Modifiers. Also is there any way to incorporate if.. else logic in the modifier...

Thanks

Posted: Tue Sep 29, 2009 10:20 am
by chulett
While you can create new columns in the Modify stage, you cannot do so with "hard coded values" i.e. constants. Nor can you do "if-then-else" logic - both of those are the domain of the Transformer, which there really isn't any reason to avoid nowadays.

Posted: Tue Sep 29, 2009 10:26 am
by chulett
FYI

(courtesy of Mr McBurney)

Posted: Tue Sep 29, 2009 11:29 am
by Sreenivasulu
very good find ..:)