What kind of session clock are you using, and it it in sync with the timestamps?<br>-W<br><br><div class="gmail_quote">On 19 January 2012 21:17, MartinSimo <span dir="ltr">&lt;<a href="mailto:simo.fora@gmail.com">simo.fora@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">Dear drools Users<br>
<br>
I&#39;d like to evaluate drools for our next project, thus a newbie.<br>
<br>
Trying to write a rule, which hits, if a threshold is reached 3 times in 100<br>
seconds.<br>
<br>
having:<br>
kpi1 -- representing the timestamp of the event (as data are read from DB)<br>
and kpi2 where the actual value is.<br>
<br>
having rule:<br>
...<br>
@expires( 200s )<br>
@timestamp( kpi1 )<br>
...<br>
<br>
$arrayList : ArrayList( size &gt; 3) from collect(<br>
  LogEntry ( $kpi2 : kpi2 &gt; 0.10) over window:time( 100s ) )<br>
<br>
<br>
I have a test set of kpi2 20x each 5s over 0.1 and then 50x each 5s below<br>
0.1.<br>
The first time the rule hits its correct (after the first 3 ticks kpi2&gt;0.1)<br>
but it continues to hit till the end of the test set, even if the 100s<br>
window didn&#39;t have any&gt;0.1.<br>
As I understood the @expires should have wiped the old data out of the<br>
working mem. (tried to set @expire( 2s), but with same result)<br>
<br>
Do I miss something?<br>
<br>
Deployed in Jboss 5.1.0ga ESB 4.10, drools 5.2.0)<br>
<br>
any help is appreciated<br>
<br>
Martin<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Fusion-historical-data-analysis-tp3673562p3673562.html" target="_blank">http://drools.46999.n3.nabble.com/Fusion-historical-data-analysis-tp3673562p3673562.html</a><br>

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>
</font></span></blockquote></div><br>