<span style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);">Hi!</span><br style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);"><span style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);">I&#39;m </span><font style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);" color="#008000"><font size="2">trying to use a sliding time fro count a facts with a condition.<br>
I&#39;have set a stream mode.<br>In test, with pseudo clock active, set this to current Time (it&#39;s correct?), declare a fact type in drl with<br> <br>declare MyFact (i&#39;ve a javabean)<br>@role(event) <br>@timestamp(myTimestamp)<br clear="all">
</font></font><span style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);">end<br><br style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);"></span><span style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);">attribute type of myTimestamp must be long or Date? I&#39;ve tried with both but nothing, engine count all fact</span><br style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);">
<span style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);">ex: n fact in x days ago from now, the statement over window:time(1s) result always n fact. why?</span><br>in when:<br> // $o : Order(&lt;condition&gt;)<br>
    $nRic : Number(intValue&lt;maxRic) from accumulate($n: Order(this==$o) over window:time(1s),count($n))<br style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);"><span style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);">ps. if i set a real clock altough a pseudo, in runTime i&#39;ve a ClassCastExc. to JdkTimerService</span><br style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);">
<span style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);">Thanks in advance.</span><br style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);"><i style="font-family: arial,helvetica,sans-serif; color: rgb(0, 0, 0);">Francesco</i><br>