<br>   Just looking at your rules, I believe it is a problem in understanding how sliding windows work in Drools.<br><br>   In Drools, sliding windows are used to filter events based on timestamp, but they do not prevent the detection of an event. I.e., although your event might have arrived late (for whatever reason, including network latency), it still happened, and since you are using no other filters, your rule means you wanted to detect that event. So, an activation is created for that rule, even if the event will be expired right after the activation is created. <br>
<br>   Please note that this is not the only semantics possible for Sliding Windows found in the literature, but was the one that best matched our requirements and was therefore adopted for the Drools implementation.<br><br>
   I want to add more semantics and make them configurable in the future, but it is not there yet.<br><br>   Edson<br><br><div class="gmail_quote">2010/2/25 Venkat K <span dir="ltr">&lt;<a href="mailto:nabble-venkatp@sneakemail.com">nabble-venkatp@sneakemail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Firstly, We very much appreciate Drools and it&#39;s developers. Thanks in<br>
advance for the community for any help . To add to my colleague&#39;s points,<br>
<br>
1. STREAM mode is turned on.<br>
2. We have tried the before operator and it works as expected.<br>
3. We have also tried the auto timestamp as opposed to using a property of<br>
the event itself for timestamping. To test sliding time window, we put<br>
sleeps between insert of objects to get gaps between the inserts.<br>
<br>
It would be great if anyone can share some light on what we may be doing<br>
wrong.<br>
<br>
Thanks and Regards,<br>
Venkat.<br>
<font color="#888888"><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://n3.nabble.com/Re-Using-Sliding-Time-Window-usage-in-Drools-Fusion-v5-0-1-tp415473p415577.html" target="_blank">http://n3.nabble.com/Re-Using-Sliding-Time-Window-usage-in-Drools-Fusion-v5-0-1-tp415473p415577.html</a><br>

Sent from the Drools - User 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>
</font></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>