<div dir="ltr">We do this....<br>rule &quot;Transaction&quot;<br>&nbsp;&nbsp;&nbsp; salience 9000<br>&nbsp;&nbsp;&nbsp; no-loop true<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CardTranResponse respObj = new &nbsp;&nbsp;&nbsp; CardTranResponse();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; respObj = handleTransaction($currcode, c1, t1, $limit_amount_fees,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $tot_feedeny, &quot;Transaction permitted&quot;, respObj); <br clear="all"><br>end;<br><br><br>Scott<br>
<br><br><div class="gmail_quote">On Fri, Aug 15, 2008 at 12:53 PM, samd <span dir="ltr">&lt;<a href="mailto:sdoyle_2@yahoo.com">sdoyle_2@yahoo.com</a>&gt;</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;">
<br>
Nobody knows?<br>
<br>
<br>
samd wrote:<br>
&gt;<br>
&gt; All I want to do is something simple like the following:<br>
&gt;<br>
&gt; $changedList: java.util.List( ) from getChangedList( $x, $y );<br>
&gt;<br>
&gt; Then in the same .drl file a function something like:<br>
&gt;<br>
&gt; function List getChangedList( $x, $y )<br>
&gt; {<br>
&gt; &nbsp; &nbsp; return JavaClass.staticDoSomethingToGetListMethod( $x, $y);<br>
&gt; }<br>
&gt;<br>
&gt; I have tried doing this and I get:<br>
&gt;<br>
&gt; Unable to build expression for &#39;from&#39; node &#39;getChangedList( $x, $y)&#39;<br>
&gt;<br>
&gt; It looks like there is supposed to be something in between the from and<br>
&gt; the function? I have been looking for examples for something like this and<br>
&gt; have not found any.<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/How-do-I-assign-a-local-variable-from-a-function-call--tp18987041p19002039.html" target="_blank">http://www.nabble.com/How-do-I-assign-a-local-variable-from-a-function-call--tp18987041p19002039.html</a><br>

Sent from the drools - user mailing list archive at Nabble.com.<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>
</font></blockquote></div><br></div>