The value of @timestamp is not just a field name but a method call on that field.<br>Have you tried<br>   @timestamp(callDateTime)<br>yet?<br>-W<br><br><div class="gmail_quote">2011/6/13 Nicolás Sanchez <span dir="ltr">&lt;<a href="mailto:sancheznicolas89@gmail.com">sancheznicolas89@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">About the questions you asked, here are the answers:<br>
<br>
- Is Event declared properly in the DRL?<br>
Yes, it&#39;s been declared properly<br>
<br>
- Is the session run properly?<br>
Yes<br>
<br>
- Is the insert call correct?<br>
Yes<br>
<br>
What I forgot to mention, and excuse me for that omission, is that this<br>
Event is declared inside the DRL file, there is no java class in the<br>
packages. This is the declare I have written:<br>
<br>
declare BankEvent<br>
    @role(event)<br>
    @timestamp(callDateTime.getTime())<br>
    @duration(callDuration)<br>
    userId : String<br>
    sequentialID : long<br>
    transactionID : long<br>
    opCode : long<br>
    amount : int<br>
    callDateTime : Date<br>
    callDuration : long<br>
end<br>
<br>
I think the problem is with operator &quot;over window:time(1m)&quot; because if<br>
remove it,<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" target="_blank">user.id</a>)<br>
from entry-point Event , count($event))<br>
then<br>
    //Java code...<br>
end<br>
<br>
the rule fires...<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-Agregate-function-count-the-rule-doesn-t-activates-tp3059438p3059783.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-Agregate-function-count-the-rule-doesn-t-activates-tp3059438p3059783.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>