[rules-users] Implementing multiple 'and' 'or' conditions

Ayush ayush.vatsyayan at alcatel-lucent.com
Tue Jan 25 05:52:15 EST 2011


Hi, I've to write a rule in which there are multiple and, or conditions. Like
(
        MyEvent(prop = "1")
or
        MyEvent(prop = "2")
or 
        MyEvent(prop = "3")
)
and
MyEvent(prop = "4")
and
MyEvent(prop = "5")

I tried to implement it like 

$E: (
        MyEvent(prop = "1")
or
        MyEvent(prop = "2")
or 
        MyEvent(prop = "3")
)
MyEvent(prop = "4")
MyEvent(prop = "5")

but it's throwing error expecting ')'. 

Can anyone please help me writting this rule?
-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Implementing-multiple-and-or-conditions-tp2328123p2328123.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list