[rules-dev] Better way to use And and Or

rules-dev at lists.jboss.org rules-dev at lists.jboss.org
Mon Jan 8 12:50:59 EST 2007


Hi, 
I am using Drools 3.0
For below rule 

RCVRCOUNTRY == IRAQ,IRAN 
SNDRCOUNTRY == US,CAN,UK 
AMOUNT > 3000 
i have to compile the drl with this 

m:   (TransactionBean(RCVRCOUNTRY == "IRAQ", SNDRCOUNTRY == "US", AMOUNT >
"3000")) 
m: (TransactionBean(RCVRCOUNTRY == "IRAQ", SNDRCOUNTRY == "UK", AMOUNT >
"3000")) 
m: (TransactionBean(RCVRCOUNTRY == "IRAQ", SNDRCOUNTRY == "CAN", AMOUNT >
"3000")) 
m: (TransactionBean(RCVRCOUNTRY == "IRAN", SNDRCOUNTRY == "US", AMOUNT >
"3000")) 
m: (TransactionBean(RCVRCOUNTRY == "IRAN", SNDRCOUNTRY == "UK", AMOUNT >
"3000")) 
m: (TransactionBean(RCVRCOUNTRY == "IRAN", SNDRCOUNTRY == "CAN", AMOUNT >
"3000")) 

Is there any other easier / better way to express this as a valid DRL? using
|

-- 
View this message in context: http://www.nabble.com/Better-way-to-use-And-and-Or-tf2940808.html#a8222646
Sent from the drools - dev mailing list archive at Nabble.com.




More information about the rules-dev mailing list