It's not too difficult to achieve the effect of a length window using one or two additional rules and an auxiliary fact type. -W
On 27 April 2013 03:48, Davide Sottara <[email protected]> wrote: > Unfortunately Drools does not support "join" constraints on (length) > windows. > So, accountNumber == "123" is checked BEFORE counting the Events in the > window, > while accountNumber == $acc.number is checked AFTER the window has filtered > the last > - 5 in your case - events. I know that this is confusing, but I will make > sure that a feature > request is opened. In any case, I don't think that this behaviour will ever > be backported > to 5.3.x.. > > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/window-length-with-variables-as-constraints-not-working-correctly-tp4023518p4023575.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
