<br> This works. I have integration tests for it. So it must be some subtle difference. <br><br> Can you open a JIRA and attach a test case showing the problem you are having plz?<br><br> Thanks,<br> Edson<br><br>
<div class="gmail_quote">2009/8/25 Francesco Chiarelli <span dir="ltr"><<a href="mailto:chiarelli.francesco@gmail.com">chiarelli.francesco@gmail.com</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;">
<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>
<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>