I came across a very similar behavior, but as far as i can tell its far worse: <a href="https://issues.jboss.org/browse/JBRULES-2862">https://issues.jboss.org/browse/JBRULES-2862</a><br>in my case events just stay in memory forever (until the jvm dies). this means any rule i&#39;ve tried with 2 windows is a memory leak.<br>

<br><div class="gmail_quote">On Sat, Jan 29, 2011 at 6:17 PM, OlliSee <span dir="ltr">&lt;<a href="mailto:o.roess@seeburger.de">o.roess@seeburger.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Hey again everyone,<br>
<br>
I seem to be having another problem.<br>
<br>
When I have a rule like that<br>
<br>
when<br>
        A() over window:length(1)<br>
        B() over window:length(1)<br>
then<br>
        ...<br>
<br>
I imagine now having two windows of length 1. One always keeping the latest<br>
A event and one always keeping the latest B event. And I expect them to<br>
update themselves once a new event comes in.<br>
<br>
But if I have events coming in like this...<br>
<br>
A1, A2, B1<br>
<br>
The rule fires for (A2, B1)<br>
<br>
then another event B2 is coming in and it fires for (A2,B2)<br>
So far so good.<br>
<br>
Then another event A3 is coming in and the rule fires for (A3,B2) and<br>
(A3,B1).<br>
Why? Shouldn&#39;t the B window only have B2 inside since it arrived and thus<br>
fire only for (A3,B2)?<br>
<br>
I have already been searching for this problem, found this<br>
<a href="http://drools-java-rules-engine.46999.n3.nabble.com/DROOLS-problem-with-sliding-windows-td2039892.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/DROOLS-problem-with-sliding-windows-td2039892.html</a><br>


but I&#39;m not sure if this is the same problem as mine.<br>
<br>
Helping me understand this is highly appreciated, since I thought I had<br>
completely understood the window behaviour.<br>
<br>
Thanks in advance.<br>
Kind regards<br>
Oliver<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Sliding-window-of-length-1-equals-latest-event-tp2370162p2370162.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Sliding-window-of-length-1-equals-latest-event-tp2370162p2370162.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>