[rules-users] How to count the number of events that happened in the last X minutes and fire if is greater than Y

Adrián Paredes adrianp at epidataconsulting.com
Mon Apr 15 12:26:57 EDT 2013


People,

I'm new at Drools Fusion and I found a problem when I'm tryin to implement
a Rule. I need to count the number of events that happened in the last X
minutes, and fire the rule if the count is greater than Y.

When I use window:time(Xm), each event slide the window, and does not help.

¿What should I do to solve my problem?

Thx in advance.
Regards.

-- 
*Epidata Consulting | Deploying Ideas
Ing. Adrián M. Paredes | Arquitecto Desarrollador
adrianp at epidataconsulting.com | Cel: (54911) 3297 1713
----------------------------------------------------------------------------------------------------------------------------
Argentina: Maipú 521 Piso 7 | Buenos Aires | Of: (5411) 5031 0060
Chile: Apoquindo 3600 Piso 7 y 9 | Las Condes - Santiago | Of: (+56) 2 495
8450
---------------------------------------------------------------------------------------------------------------------------
 www.epidataconsulting.com
 Linkedin <http://bit.ly/epidatalinkedin> |
Facebook<http://www.facebook.com/epidata.consulting>
 | Twitter <http://twitter.com/epidata>
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130415/e6acdfa9/attachment.html 


More information about the rules-users mailing list