Your windows don't really slide; they are fixed.
It's probably better to add an order event's value into a fact OrderPerHour,
where you have one such fact for each hour, doing this when the event
appears in the system. (Use no-loop on this rule.)
Then, using cron timers, inspect the OrderPerHour fact of the completed
hour.
-W
On 8 July 2011 09:13, Amila Suriarachchi <amilaSuriarachchi(a)gmail.com>wrote:
As I understood Drools fusion supports sliding windows which can
either
time
based on message length based. But can I write a query with specific time
intervals?
For an example Lets say my CEP engine recive events which has order value.
Now I want to fire an event if the orders within 8.00 am to 9.00 am have
less than $40000. In generally firing an event if there are less that
$40000
total order value within any working hour (i.e 8.00 am 5.00 pm)
is it possible to do this?
--
View this message in context:
http://drools.46999.n3.nabble.com/Writting-a-fusion-query-with-specific-t...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users