Skip to Content
0
Former Member
Dec 02, 2009 at 04:15 PM

UDF problem with value comparison

57 Views

Dear Experts,

as I am not a Java-expert I need your help. I created a UDF (type ""QUEUE", also tried "CONTEXT" but did not work), which accepts 3 parameters from my input-XML file. For some reason, from the UDF I always get the value "O" back, even if for instance the Billingstatus1 = C.

In message-mapping, I mapped the node "BillingStatus1" directly to the input parameter of the UDF. The same goes for the other parameters.

Code of UDF:

if(BillingStatus1.equals("C") | BillingStatus2.equals("C"))

{

result.addValue("I");

}

else if(DeliveryStatus.equals("C"))

{

result.addValue("S");

}

else {

result.addValue("O");

}

Can anybody please tell me what I am doing wrong here?

Thanks in advance!

William

Edited by: JWD on Dec 2, 2009 5:22 PM