Re: [rules-users] keeping running stats

2009-05-27 Thread Edson Tirelli
> > > > > -- > > *From:* rules-users-boun...@lists.jboss.org [mailto: > rules-users-boun...@lists.jboss.org] *On Behalf Of *Michal Bali > *Sent:* Wednesday, May 27, 2009 11:09 AM > *To:* Rules Users List > *Subject:* Re: [rules-user

RE: [rules-users] keeping running stats

2009-05-27 Thread Chris Richmond
The sample I sent, none of those ever get processed since it is not looking at the proper entry point. _ From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michal Bali Sent: Wednesday, May 27, 2009 11:09 AM To: Rules Users List S

RE: [rules-users] keeping running stats

2009-05-27 Thread Chris Richmond
] keeping running stats Hi Chris, You can use 'accumulate' with sliding time window. Have a look here http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-fusion/html/ ch02.html#d0e1169 rule "Sound the alarm in case temperature rises above threshold" when Temper

RE: [rules-users] keeping running stats

2009-05-27 Thread Chris Richmond
ules-users-boun...@lists.jboss.org] On Behalf Of Michal Bali Sent: Wednesday, May 27, 2009 11:09 AM To: Rules Users List Subject: Re: [rules-users] keeping running stats Hi Chris, You can use 'accumulate' with sliding time window. Have a look here http://downloads.jboss.com/drools/do

Re: [rules-users] keeping running stats

2009-05-27 Thread Michal Bali
Hi Chris, You can use 'accumulate' with sliding time window. Have a look here http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-fusion/html/ch02.html#d0e1169 rule "Sound the alarm in case temperature rises above threshold" when TemperatureThreshold( $max : max ) Number( doub

[rules-users] keeping running stats

2009-05-27 Thread Chris Richmond
Hello, I have modified the stockTicker fusion example to keep some running stats, you can see from the rule snippet below that it injects a stats object based on the symbol then matches them as updates come in later. You can see for now I am just updating the running counts and outputting the