<div dir="ltr"><div>It&#39;s not too difficult to achieve the effect of a length window using one or two additional rules and an auxiliary fact type.<br></div>-W<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 27 April 2013 03:48, Davide Sottara <span dir="ltr">&lt;<a href="mailto:dsotty@gmail.com" target="_blank">dsotty@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">
Unfortunately Drools does not support &quot;join&quot; constraints on (length) windows.<br>
So, accountNumber == &quot;123&quot; is checked BEFORE counting the Events in the<br>
window,<br>
while accountNumber == $acc.number is checked AFTER the window has filtered<br>
the last<br>
 - 5 in your case - events. I know that this is confusing, but I will make<br>
sure that a feature<br>
request is opened. In any case, I don&#39;t think that this behaviour will ever<br>
be backported<br>
to 5.3.x..<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/window-length-with-variables-as-constraints-not-working-correctly-tp4023518p4023575.html" target="_blank">http://drools.46999.n3.nabble.com/window-length-with-variables-as-constraints-not-working-correctly-tp4023518p4023575.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></div>