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.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to