Your windows don&#39;t really slide; they are fixed.<br><br>It&#39;s probably better to add an order event&#39;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.)<br>
<br>Then, using cron timers, inspect the OrderPerHour fact of the completed hour.<br><br>-W<br><br><div class="gmail_quote">On 8 July 2011 09:13, Amila Suriarachchi <span dir="ltr">&lt;<a href="mailto:amilaSuriarachchi@gmail.com">amilaSuriarachchi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">As I understood Drools fusion supports sliding windows which can either time<br>
based on message length based. But can I write a query with specific time<br>
intervals?<br>
<br>
For an example Lets say my CEP engine recive events which has order value.<br>
Now I want to fire an event if the orders within 8.00 am to 9.00 am have<br>
less than $40000. In generally firing an event if there are less that $40000<br>
total order value within any working hour (i.e 8.00 am 5.00 pm)<br>
<br>
is it possible to do this?<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Writting-a-fusion-query-with-specific-time-intervals-tp3151010p3151010.html" target="_blank">http://drools.46999.n3.nabble.com/Writting-a-fusion-query-with-specific-time-intervals-tp3151010p3151010.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>