1 Reply Latest reply on Oct 10, 2007 12:46 PM by Burr Sutter

    CBR with AND/OR

    toby saville Novice

      Hello,

      I have an Order object in an XML message, on which i want to perform CBR. Amongst others, it has the following fields:
      - type
      - progress

      And the values of these two fields combined determines which service the message should get routed to. The following pseudo code provides an example:

      if (type == "SMPF" AND progress == "NEW")
       destination = smpf:pre
      else if (type == "SMPF" AND progress == "PRE")
       destination = smpf:firm
      
      if (type == "ADSL" AND progress == "NEW")
       destination = adsl:pre
      else if (type == "ADSL" AND progress == "PRE")
       destination = adsl:firm
      


      How can i perform CBR on more than one field? Do i need to pass the message through two separate CBR actions/services?

      Cheers,
      toby