[rules-users] Problem with or condition

Ayush ayush.vatsyayan at alcatel-lucent.com
Tue Jan 25 00:57:24 EST 2011


Formatting the rule in above post
MyEvent () from entry-point MyStream Number($objCountForOne : doubleValue)
from accumulate( MyEvent(prop1 == "One") over window:time(1m) from
entry-point MyStream,count()) eval($objCountForOne > getMyNodeCount()*0.35) 
or 
MyEvent () from entry-point MyStream Number( $objCountForTwo : doubleValue)
from accumulate( MyEvent(prop1 == "Two"), count()) eval($objCountForTwo >=
getMyConnectionCount()*0.40)
-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Problem-with-or-condition-tp2326849p2326862.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list