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.<br>-W<br>
<br><div class="gmail_quote">On 11 August 2011 15:55, wendy <span dir="ltr"><<a href="mailto:w.mungovan@yahoo.com">w.mungovan@yahoo.com</a>></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;">
Right. But we don't want to match if the size dropped below 5 during the last<br>
20 m.<br>
<br>
so if the size for BLUE are:<br>
<br>
Time 0 5 10 15 20 25 30 35 40 45 50<br>
Size <a href="tel:5%206%207%20%20%206%20%20%206%20%206%20%206%20%20%206%20%20%206%20%20%204" value="+15676666664">5 6 7 6 6 6 6 6 6 4</a> 6<br>
<br>
at times 25,30,35,40 we would want to trigger but not at 0, 45 or 50.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Collect-with-same-value-tp3242904p3245998.html" target="_blank">http://drools.46999.n3.nabble.com/Collect-with-same-value-tp3242904p3245998.html</a><br>
</font><div><div></div><div class="h5">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>
</div></div></blockquote></div><br>