You enhance the accumulation context with a Set of those colours where the
size drops below 5. Once you encounter a low one you add it to the set,
clear the Map entry and block further additions by testing the set.
-W
On 11 August 2011 15:55, wendy <w.mungovan(a)yahoo.com> wrote:
Right. But we don't want to match if the size dropped below 5
during the
last
20 m.
so if the size for BLUE are:
Time 0 5 10 15 20 25 30 35 40 45 50
Size 5 6 7 6 6 6 6 6 6 4 6
at times 25,30,35,40 we would want to trigger but not at 0, 45 or 50.
--
View this message in context:
http://drools.46999.n3.nabble.com/Collect-with-same-value-tp3242904p32459...
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