[rules-dev] Issues in combining AND and OR
garima015
garima_indiya at rediffmail.com
Mon Jan 8 10:48:49 EST 2007
Hi,
For below rule
RCVRCOUNTRY == IRAQ,IRAN
SNDRCOUNTRY == US,CAN,UK
AMOUNT > 3000
currently gets translated to the below LHS
m: (TransactionBean(RCVRCOUNTRY == "IRAQ", SNDRCOUNTRY == "US", AMOUNT >
"3000"))
or (TransactionBean(RCVRCOUNTRY == "IRAQ", SNDRCOUNTRY == "UK", AMOUNT >
"3000"))
or (TransactionBean(RCVRCOUNTRY == "IRAQ", SNDRCOUNTRY == "CAN", AMOUNT >
"3000"))
or (TransactionBean(RCVRCOUNTRY == "IRAN", SNDRCOUNTRY == "US", AMOUNT >
"3000"))
or (TransactionBean(RCVRCOUNTRY == "IRAN", SNDRCOUNTRY == "UK", AMOUNT >
"3000"))
or (TransactionBean(RCVRCOUNTRY == "IRAN", SNDRCOUNTRY == "CAN", AMOUNT >
"3000"))
Is there any other easier / better way to express this as a valid DRL?
--
View this message in context: http://www.nabble.com/Issues-in-combining-AND-and-OR-tf2940077.html#a8220292
Sent from the drools - dev mailing list archive at Nabble.com.
More information about the rules-dev
mailing list