Hi,<br><br>I have written the next rule :<br><br>rule &quot;Too many events in a short period of time&quot;<br>dialect &quot;mvel&quot; <br><br>when<br>    $user : User()<br>    Number(intValue &gt; 3) from accumulate($event : Event(userId == $<a href="http://user.id">user.id</a>) over window:time(1m) from entry-point Event , count($event))<br>
then<br>    //Java code...<br>end<br><br>And the events, I insert in the Event entrypoint, are 4 and have these timestamps:<br><br>Calendar cal1 = Calendar.getInstance();<br>cal1.set(2010,9,23,10,30,00);<br>Calendar cal2 = Calendar.getInstance();<br>
cal2.set(2010,9,23,10,30,05);<br>Calendar cal3 = Calendar.getInstance();<br>cal3.set(2010,9,23,10,30,10);<br>Calendar cal4 = Calendar.getInstance();<br>cal4.set(2010,9,23,10,30,15);<br><br>Has the rule any syntax or semantic problem, knowing that i aim to catch if there has been more than 3 events in the last minute?<br>
<br>-- <br><div>Nicolás Sanchez</div>
<div><br></div><br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><br>
<div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>