Don&#39;t you fret because this isn&#39;t available. It&#39;s not difficult to collect facts over a variable interval, provided the timestamp is a regular property. An auxiliary fact defines the window&#39;s boundaries, and then you use ops like &lt;= to select the facts.<div>
-W</div><div><br><div class="gmail_quote">On 1 March 2012 17:25, Lauer, Will C <span dir="ltr">&lt;<a href="mailto:Will.Lauer@ca.com">Will.Lauer@ca.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;m evaluating the use of Drools Fusion for a new project and have a question about sliding windows that wasn&#39;t clear from the documentation. Does the time specification in a sliding window need to be hardcoded in the rule, or can it be derived from something else? Basically, I&#39;m wondering whether I can write a rule that looks something like<br>

<br>
        when<br>
                ...<br>
                Window ($win : length)<br>
                Number (intValue &gt; $someValue) from accumulate (<br>
                        Sample($len: length, value &gt; $someThreashold) over window:time ($win),<br>
                        sum($len) )<br>
        then<br>
                ...<br>
        end<br>
<br>
I know window:time() supports constant values like &quot;10m&quot;, but can the window be driven from one of the other facts in the LHS picked up by the LHS of the rule?<br>
<br>
<br>
Will Lauer<br>
CA Technologies<br>
Sr Software Architect<br>
Tel:  <a href="tel:%2B1-713-625-9410" value="+17136259410">+1-713-625-9410</a><br>
Cell: <a href="tel:%2B1-979-820-2210" value="+19798202210">+1-979-820-2210</a><br>
<a href="mailto:Will.Lauer@ca.com">Will.Lauer@ca.com</a><br>
<br>
<br>
<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>
</blockquote></div><br></div>