<!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 text="#000000" bgcolor="#ffffff">
    On 25/05/2011 08:28, Wolfgang Laun wrote:
    <blockquote
      cite="mid:BANLkTi=+9mFAinreZTFUpqnb9cE6BWzP3Q@mail.gmail.com"
      type="cite">&nbsp;rule&nbsp; exornot<br>
      &nbsp; when<br>
      &nbsp;&nbsp; &nbsp; &nbsp; Number( $iCount: intValue )&nbsp; from accumulate ( Fact( x &gt;
      0 ), $c: count(1) )<br>
      &nbsp; then<br>
      &nbsp;&nbsp; &nbsp; &nbsp; System.out.println( "count = " + $c );<br>
      &nbsp; end<br>
    </blockquote>
    accumualte now supports multiple functinos - like min and max. As it
    now returns multiple results, the 'from' isn't appropriate. So we
    instead allow binding on the function directly. 'from' will still,
    for single functions it will behave as previously, for multiple
    functions I believe we throw an arror.<br>
    <br>
    Mark<br>
    <blockquote
      cite="mid:BANLkTi=+9mFAinreZTFUpqnb9cE6BWzP3Q@mail.gmail.com"
      type="cite"><br>
      There's no way $c can be used in RHS code (5.3.0, current).<br>
      Is this the intended behaviour? Where can it be used?<br>
      <br>
      -W<br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>