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
The answer to this is YES.
Now, the trick is figuring out the right DRL syntax.
I believe AND is handled like so:
State(name == "A", state == State.FINISHED )