On 7 July 2011 16:20, Andre <span dir="ltr">&lt;<a href="mailto:morpheusandre@web.de">morpheusandre@web.de</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
thx for your help..<br>
so i have to implement an accumulate function which counts based on matching<br>
ids, the reference will be set in the init method and the accumulate methods<br>
then checks whether its the same or not , ok<br>
<br></blockquote><div><br>The init method should just do<br>  Map&lt;ID,Integer&gt; id2count = new ...<br>or equivalent. The result - a Collection - could be the Entry Set of the map.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

what is this &quot;reverse&quot; method for ? (when does drools has to reverse this ?<br>
, do i have to reverse the count or also the check ?)<br></blockquote><div><br>It&#39;s called for a matching element being retracted. If you count, it&#39;ll subtract one.<br><br>If you need to know, and react to, all individual excess occurrences, the collection of counters should be analyzed after the accumulate.<br>
<br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/sliding-window-combination-tp3132340p3148339.html" target="_blank">http://drools.46999.n3.nabble.com/sliding-window-combination-tp3132340p3148339.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>