Transformer constraint
Posted: Mon Oct 18, 2010 9:11 am
Hi
I am using transformer in Parallel Extender job. Transformer with two output links (First and Second), to split the input data.
I want to write a constraint for First(Link name) link.
when values for perticular input column (Role_ID) has AAAAA then I need to populate PPPPP
If column (Role_ID) has BBBBB then I need to populate PPPPP
If column (Role_ID) has CCCCC then I need to populate PPPPP
If column (Role_ID) has DDDDD then I need to populate PPPPP
If column (Role_ID) has EEEEE then I need to populate PPPPP
And I need to direct all these records (Role_ID has AAAAA, BBBBB, CCCCC, DDDDD, EEEEE) to First (Link name) output link.
About Second output link of the transformer
I naeed direct all the records (every record of the input) to the Second output link of the transforme
And I am using the following condition on the First link constraint, but not working
IF Today.PO_ROLE_CD = "OWTR " then Today.PO_ROLE_CD = "PPPPP" else IF Today.PO_ROLE_CD = "TRST " then Today.PO_ROLE_CD = "PPPPP" else
IF Today.PO_ROLE_CD = "CUSN " then Today.PO_ROLE_CD = "PPPPP" else IF Today.PO_ROLE_CD = "BRKR " then Today.PO_ROLE_CD = "PPPPP"
I am looking for the solution
Thanks
I am using transformer in Parallel Extender job. Transformer with two output links (First and Second), to split the input data.
I want to write a constraint for First(Link name) link.
when values for perticular input column (Role_ID) has AAAAA then I need to populate PPPPP
If column (Role_ID) has BBBBB then I need to populate PPPPP
If column (Role_ID) has CCCCC then I need to populate PPPPP
If column (Role_ID) has DDDDD then I need to populate PPPPP
If column (Role_ID) has EEEEE then I need to populate PPPPP
And I need to direct all these records (Role_ID has AAAAA, BBBBB, CCCCC, DDDDD, EEEEE) to First (Link name) output link.
About Second output link of the transformer
I naeed direct all the records (every record of the input) to the Second output link of the transforme
And I am using the following condition on the First link constraint, but not working
IF Today.PO_ROLE_CD = "OWTR " then Today.PO_ROLE_CD = "PPPPP" else IF Today.PO_ROLE_CD = "TRST " then Today.PO_ROLE_CD = "PPPPP" else
IF Today.PO_ROLE_CD = "CUSN " then Today.PO_ROLE_CD = "PPPPP" else IF Today.PO_ROLE_CD = "BRKR " then Today.PO_ROLE_CD = "PPPPP"
I am looking for the solution
Thanks