Did you try setting the attribute @expires(1d) ?<br><br><div class="gmail_quote">2009/8/31 Francesco Chiarelli <span dir="ltr">&lt;<a href="mailto:chiarelli.francesco@gmail.com">chiarelli.francesco@gmail.com</a>&gt;</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 class="gmail_quote"><br>Hi!<br>i&#39;m new to use a drools-fusion, i&#39;ve a next lhs condition in rule:<br>
        $o: Order(status!=&quot;EU_C_R1_INIT&quot;)<br>        SystemConfig(value:value) from hbnSession.createQuery(&quot;from SystemConfig where name=:name&quot;).setString(&quot;name&quot;,&quot;nRicMax&quot;).uniqueResult()<br>


        $nRic : Number(intValue  &lt; value) from accumulate($n: Order(this==$o) over window:time(1d),count($n))<br>Data:<br>1) Order 1 date 28 aug 2009 EU_C_INIT<br>
2) Order 1 date 31 aug 2009 EU_A_INIT<br>
3) Order 1 date 31 aug 2009 EU_B_INIT<br>
4) Order 1 date 30 aug 2009 EU_B_INIT<br>
5) Order 1 date 28 aug 2009 EU_A_INIT<br>
6) Order 1 date 01 aug 2009 EU_A_INIT<br>
7) Order 1 date 28 aug 2009 EU_C_INIT<br>
8) Order 1 date 28 aug 2009 EU_C_INIT<br><br>Only the first condition is verified [  Order(status!=&quot;EU_C_R1_INIT&quot;) ] altough there are facts that verify Order(this==$o) over window:time(24h) ]<br>There are n-k facts that don&#39;t verify a previous condition but them come count also:<br clear="all">


I espect that drools count a 2-3-4 but it count also 5-6-7: i&#39;m confused<br>P.S. i did set a stream mode, i&#39; had set a timestamp attribute in event fact @timestamp(myTimestampLong), i tried with pseudo clock (making it advance for new Date().getTime() or at origin, therefore 01 jan 1970 [without event @timestamp attribute] ) <br>


Regards<br>Francesco<br>
</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>