[rules-users] timer and duration

OlliSee o.roess at seeburger.de
Fri Feb 4 11:15:35 EST 2011


Hello folks.

Got a new characteristic unveiled,...

if I have a rule like this (with Fusion in STREAM mode)...
(Sensor is a fact)

rule "Test"
       timer(int: 7s 7s)
       when
              $sensor : Sensor()		
	      Number($avg : doubleValue > 0.0) from accumulate
			(LoopDetectorEvent($vel : velocity, sensor == $sensor) over
window:time(7s), average($vel))
        then
              ...
end

...Drools fires the rule correctly every 7 seconds for each Sensor fact.
BUT, it sometimes fires twice for random Sensors.

This is of course not intended. Is this a bug or can this behaviour be
explained?

       
-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/timer-and-duration-tp2057403p2425240.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list