<br><br><div class="gmail_quote">On 25 May 2011 16:42, Mark Proctor <span dir="ltr"><<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff"><div class="im">
On 25/05/2011 08:28, Wolfgang Laun wrote:
<blockquote type="cite"> rule exornot<br>
when<br>
Number( $iCount: intValue ) from accumulate ( Fact( x >
0 ), $c: count(1) )<br>
then<br>
System.out.println( "count = " + $c );<br>
end<br>
</blockquote></div>
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></div></blockquote><div><br>It would appear that you don't; the first function is returned via the pattern up-front.<br><br>JIRA forthcoming, since results can't be used on the RHS.<br>-W<br><br><br> </div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div text="#000000" bgcolor="#ffffff">
Mark<br>
<blockquote type="cite"><div class="im"><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>
</div><pre><fieldset></fieldset>
_______________________________________________
rules-dev mailing list
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>