<div><br></div> Nope, only constants.<div><br></div><div> Edson<br><br><div class="gmail_quote">On Thu, Mar 1, 2012 at 11:25 AM, Lauer, Will C <span dir="ltr"><<a href="mailto:Will.Lauer@ca.com">Will.Lauer@ca.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm evaluating the use of Drools Fusion for a new project and have a question about sliding windows that wasn'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'm wondering whether I can write a rule that looks something like<br>
<br>
when<br>
...<br>
Window ($win : length)<br>
Number (intValue > $someValue) from accumulate (<br>
Sample($len: length, value > $someThreashold) over window:time ($win),<br>
sum($len) )<br>
then<br>
...<br>
end<br>
<br>
I know window:time() supports constant values like "10m", 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><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>