<div><br></div>   Yes, evaluation is incremental, so for every new fact, it will call accumulate() and getResult().<div><br></div><div>   We do want to reduce the calls to getResult(), improving performance, but it is not easy to figure out a way, as from an engine perspective, it never knows when the application is done inserting facts and it is time to calculate the final result.</div>
<div><br></div><div>   Edson<br><br><div class="gmail_quote">2011/8/24 Bruno Freudensprung <span dir="ltr">&lt;<a href="mailto:bruno.freudensprung@temis.com">bruno.freudensprung@temis.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
While testing my custom accumulation function I noticed an unexpected<br>
behavior (th&#39;ats of course a personal point of view).<br>
It seems that Drools 5.1 calls accumulate(...) and getResult(...) as<br>
many times as the number of accumulated facts (accumulate, getResult,<br>
accumulate, getResult, etc...).<br>
Is it supposed to work like this?<br>
<br>
Best regards,<br>
<br>
Bruno.<br>
<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>