<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    Thanks for the explanation Edson!<br>
    That's fine. In the meantime we will do our best to pre-compute the
    most we can in accumulate() ;-).<br>
    Best regards,<br>
    <br>
    Bruno.<br>
    <br>
    Le 24/08/2011 16:21, Edson Tirelli a &eacute;crit&nbsp;:
    <blockquote
cite="mid:CAD7AJnfTinYwm91e7k3wiNmSUN2ZPsaj=7mOiccNumGYouwEZA@mail.gmail.com"
      type="cite">
      <div><br>
      </div>
      &nbsp; &nbsp;Yes, evaluation is incremental, so for every new fact, it will
      call accumulate() and getResult().
      <div><br>
      </div>
      <div>&nbsp; &nbsp;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>&nbsp; &nbsp;Edson<br>
        <br>
        <div class="gmail_quote">2011/8/24 Bruno Freudensprung <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:bruno.freudensprung@temis.com">bruno.freudensprung@temis.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            Hi,<br>
            <br>
            While testing my custom accumulation function I noticed an
            unexpected<br>
            behavior (th'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 moz-do-not-send="true"
              href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              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>
        &nbsp; Edson Tirelli<br>
        &nbsp; JBoss Drools Core Development<br>
        &nbsp; JBoss by Red Hat @ <a moz-do-not-send="true"
          href="http://www.jboss.com">www.jboss.com</a><br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>