<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'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'have set a stream mode.<br>In test, with pseudo clock active, set this to current Time (it's correct?), declare a fact type in drl with<br> <br>declare MyFact (i'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'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(<condition>)<br>
$nRic : Number(intValue<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'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>