Please ignore my last message, sent by mistake!
Sorry for the confusion.
Glenn
From: rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@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@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @ www.jboss.com