[rules-users] Collect with same value

Wolfgang Laun wolfgang.laun at gmail.com
Thu Aug 11 11:16:35 EDT 2011


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 at 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-tp3242904p3245998.html
> Sent from the Drools: User forum 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/20110811/a923d375/attachment.html 


More information about the rules-users mailing list