<div><br></div>   The reason is because the engine will not queue up events and wait for the correct time to deal with them. The engine assumes events always represent past times. But for past events, I am sure the window is respected. If you have a rule that counts the number of events in the last 5 hours, an event that happened 5 hours and 1 minute ago will not be in the total count.<div>
<br></div><div>   Edson<br><br><div class="gmail_quote">On Wed, Mar 14, 2012 at 4:58 PM, lexsoto <span dir="ltr">&lt;<a href="mailto:lexsoto@gmail.com">lexsoto@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Edson for your reply, however I am still not clear about why the rule<br>
is firing if the time stamp of the event falls outside the time window.<br>
This can happen, for example, if the event originates in a machine with<br>
clock slightly ahead. I think the problem also occurs if the time is in the<br>
past; I would not want  to take action on a future or old event.<br>
<br>
I understand that events are immutable, and I am not changing the event in<br>
any way.  However, I expect the &quot;sliding time window&quot; to be changing along<br>
with the system clock until it reaches the timestamp of the event.<br>
My question still unanswered, why is the rule firing outside its time<br>
window? Is there a way to make this work?  Any advice about how to address<br>
this use case?<br>
<br>
Thanks<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Future-events-tp3826236p3826759.html" target="_blank">http://drools.46999.n3.nabble.com/Future-events-tp3826236p3826759.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>