[rules-users] Question about collect and sliding windows

Wolfgang Laun wolfgang.laun at gmail.com
Wed Dec 1 11:04:55 EST 2010


On 1 December 2010 16:47, Anais Martinez <amartinez at iti.upv.es> wrote:

>
> Yes, I use Stream mode and real clock. I have a thread wich call
> fireAllrules
> of the session. Do I change to fireUntilHalt?
>
> What does your thread do after it returns from fireAllRules?



> The size==80 is because each type of reading comes each 15 minutes (2 types
> of readings * 4 readings each hour * 10 hours). Right or I change to >=?
>

Well, if the events arrive on schedule it should be OK, but what about the
delayed arrivals? Imagine you get two delayed events, #80, and #81, and you
insert them one after the other, and not other thread has a chance of
kicking
in.

How to handle this also depends on what the consequence is meant to do.
Sending a quick succession of alerts to some operator, one after the other,
if a delayed bunch is inserted one after the other may not be acceptable.


Regards
-W


> I have one only entry-point.
>
> Thanks again.
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Question-about-collect-and-sliding-windows-tp1999562p1999854.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101201/f9f0c83a/attachment.html 


More information about the rules-users mailing list