[rules-users] CEP Question

Glenn Macgregor gmacgregor at pocketkings.ie
Tue Feb 16 05:32:13 EST 2010


Please ignore my last message, sent by mistake!

Sorry for the confusion.

 Glenn

From: rules-users-bounces at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Edson Tirelli
Sent: 15 February 2010 20:08
To: Rules Users List
Subject: Re: [rules-users] CEP Question


   Hi Glen,

   The averages are indeed recalculated on event expiration. Example:

You have values for the following events:

e1: 20
e2: 30
e3: 40

    So the average is 30. Whenever e1 is expired in your window, the average is recalculated to 35 (assuming no new event arrived).

    What are you seeing there?

    Edson
2010/2/15 Glenn Macgregor <gmacgregor at pocketkings.ie<mailto:gmacgregor at pocketkings.ie>>
Hi All,

I am still working through a CEP use case which is going fairly well. I have a few rules and it seems they are working as I expect. Is there a way to get called back when events go out of a time window? My current use case is alerting, I have a stream of events (param updates) coming in and I create a ParamUpdateEvent for each. I have a rule which averages the values in the ParamUpdateEvent and tests against a threshold, that is working fine. The problem is when I don't receive any events for a period of time over the window size I really want to the rule which calculates the average to fire when anything is moved out of the window as well as when an update arrives, is this possible?

Thanks

 Glenn

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org<mailto:rules-users at lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users



--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com<http://www.jboss.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100216/880e2b86/attachment.html 


More information about the rules-users mailing list