<br> Hi Glen,<br><br> The averages are indeed recalculated on event expiration. Example:<br><br>You have values for the following events:<br><br>e1: 20<br>e2: 30<br>e3: 40<br><br> So the average is 30. Whenever e1 is expired in your window, the average is recalculated to 35 (assuming no new event arrived).<br>
<br> What are you seeing there?<br><br> Edson<br><br><div class="gmail_quote">2010/2/15 Glenn Macgregor <span dir="ltr"><<a href="mailto:gmacgregor@pocketkings.ie">gmacgregor@pocketkings.ie</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-IE">
<div>
<p class="MsoNormal">Hi All,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I am still working through a CEP use case which is going
fairly well. I have a few rules and it seems they are working as I expect. Is
there a way to get called back when events go out of a time window? My current
use case is alerting, I have a stream of events (param updates) coming in and I
create a ParamUpdateEvent for each. I have a rule which averages the values in
the ParamUpdateEvent and tests against a threshold, that is working fine. The
problem is when I don’t receive any events for a period of time over the
window size I really want to the rule which calculates the average to fire when
anything is moved out of the window as well as when an update arrives, is this
possible?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks</p>
<p class="MsoNormal"> </p><font color="#888888">
<p class="MsoNormal"> Glenn</p>
</font></div>
</div>
<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>
<br></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>