Re: [rules-users] How can we make the ‘over window:time’ parameter being configurable?

2014-06-11 Thread Matteo Mortari
Hi, I'm quite intrigued by this question also myself, I would like to know more about what you mean by configurable ? For instance you can have the window 'declared' declare window SensorReading30s SensorReading() over window:time(30s) from entry-point DEFAULT end and also use this custom

Re: [rules-users] How can we make the 'over window:time' parameter being configurable?

2014-06-11 Thread Wolfgang Laun
It requires a little work (and the timestamp should be an event attribute) to write rules to select facts being in a dynamic window, but it can be done. -W On 11/06/2014, Matteo Mortari matteo.mort...@gmail.com wrote: Hi, I'm quite intrigued by this question also myself, I would like to know

Re: [rules-users] How can we make the ‘over window:time’ parameter being configurable?

2014-06-11 Thread moonbeam
By 'configurable', I mean 'user defined' instead of 'programmer defined'. I know, I can write (and it will work): rule Sound the alarm in case temperature rises above threshold when TemperatureThreshold( $max : max ) Number( doubleValue $max ) from accumulate( SensorReading( $temp

[rules-users] How can we make the ‘over window:time’ parameter being configurable?

2014-06-09 Thread moonbeam
How can we make the ‘over window:time’ parameter being configurable? Something similar to the following rule (that does not compile at all). See the $windowTime variable. declare TemperatureThreshold windowTime : String = 30s max : long = 70 end declare SensorReading