on 12-15-2011 10:06 AM
I have a structure like this
<Invoice>
<InvoiceHeader></InvoiceHeader>
<InvoiceItemDetail>
<InvoiceItem>
....
<InvoicePrice>0.00</InvoicePrice>
</InvoiceItem>
<InvoiceItem>
....
<InvoicePrice>0.00</InvoicePrice>
</InvoiceItem>
<InvoiceItem>
....
<InvoicePrice>0.00</InvoicePrice>
</InvoiceItem>
</InvoiceItemDetail>
</Invoice>
if my Invoiceprice is 0.00 in all invoice items , i need to send to a particular receiver.
In this case, how do i need formulate a receiver condition? i have tried all, but it is not working.
Regards,
Raveendra
HI,
if my Invoiceprice is 0.00 in all invoice items , i need to send to a particular receiver.
in receiver determination, we need to define condition based routing by using Xpath/Context Object
ex:
if Invoiceprice = 0.00 then pass to receiver
thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
if i have two invoice items with one price with 0.00 and 30.00. your condition will find a receiver. But, it has to find receiver only when two invoice prices are 0.00
if i have two invoice items with one price with 0.00 and 30.00
for ex:
item A = 0.00
item B = 0.00 / 30.00
But, it has to find receiver only when two invoice prices are 0.00
rootnode/InvoiceItemDetail/InvoicePrice(A) = 0.00 AND rootnode/InvoiceItemDetail/InvoicePrice(B) = 0.00 -
> target A
rootnode/InvoiceItemDetail/InvoicePrice(A) # 0.00 OR rootnode/InvoiceItemDetail/InvoicePrice(B) # 0.00 -
> target B
thanks,
go can also go for extended receiver determination option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi , Raavendra
In your receiver determination you could
(/your message type/InvoiceItem/InvoicePrice[(number(.) <> 0)]) exist --> receiver
if not receiver is found, procceed --> your particular receiver
Regards,
Carme
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
(/your message type/InvoiceItem/InvoicePrice) exist --> receiver
if not receiver is found, procceed --> your particular receiver
I think you can also try
(/your message type/InvoiceItem/InvoicePrice EQ 0) --> receiver
if not receiver is found, procceed --> your particular receiver
Regard
Ramesh
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.