cancel
Showing results for 
Search instead for 
Did you mean: 

receiver determination condition for multiple line items

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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,

Former Member
0 Kudos

Hi,

I am talking about multiple line items which means price will come in all items and it should be '0.00'. your condition only check whether one of item has 0.00

Former Member
0 Kudos

HI,

I am saying about multiple items based on condition xpath/context object

rootnode/InvoiceItemDetail/InvoicePrice = 0.00 -


> target A

rootnode/InvoiceItemDetail/InvoicePrice # 0.00 -


> target b.

thanks,

Former Member
0 Kudos

Extended receiver determintaion will suit ur req? create UDF and determine receivers rdingly

Former Member
0 Kudos

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

Former Member
0 Kudos
You add two invoice prices in the condition, if still it is 0.00 ---> Target

regards

Ramesh

Former Member
0 Kudos

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,

Former Member
0 Kudos

go can also go for extended receiver determination option.

Former Member
0 Kudos

Hi,

You have to use XPATH expressions in reciever determination in order to achieve.

You can get lot of help on existing discussions and blogs

for your reference:

regarrds

Ramesh

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Carme,

I am not able to see your condition clearly because it has come with hyperlink. Can you please send me the condition again

Regards,

Raveendra

Former Member
0 Kudos

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