<div>Hi Michael,</div>
<div>&nbsp;</div>
<div>I had a similar problem, but found that if I declared func2 before func1 (i.e. func2 appears above func1 in a drl file) then you can call func2 in func1. I&#39;m not sure if this is a bug in drools or a limitation of the parser. </div>

<div>&nbsp;</div>
<div>Regards</div>
<div>Shahad<br><br></div>
<div class="gmail_quote">On Mon, May 19, 2008 at 1:58 PM, Michael Katai &lt;<a href="mailto:mk.others@gmx.at">mk.others@gmx.at</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello!<br><br>Is it possible to call a Function in a Function?<br><br>For example:<br><br>&nbsp;rule<br>&nbsp; &nbsp;when<br>
&nbsp; &nbsp;then<br>&nbsp; &nbsp; &nbsp;func1(data1, data2);<br>&nbsp;end<br><br>&nbsp;function void func1(MyClass1 data1, MyClass2 data2)<br>&nbsp;{<br>&nbsp; &nbsp;func2(data1, data2);<br>&nbsp;}<br><br>&nbsp;function void func2(MyClass1 data1, MyClass2 data2)<br>&nbsp;{<br>&nbsp;}<br><br>
When I do so, i get the error message:<br><br>func1 : Function Compilation error<br>func1 (line:x): The method func2(MyClass1, MyClass2) is undefined for the<br>type Func1<br><br>Any suggestions?<br>michael<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>