Skip to Content
author's profile photo Former Member
Former Member

receiver determination condition for multiple line items

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2011 at 10:21 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2011 at 10:22 AM

    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: regarding-conditional-interface-determination

    regarrds

    Ramesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 15, 2011 at 10:30 AM

    go can also go for extended receiver determination option.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2011 at 10:32 AM

    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,

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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,

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.