<div>Hi Michael,</div>
<div> </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'm not sure if this is a bug in drools or a limitation of the parser. </div>
<div> </div>
<div>Regards</div>
<div>Shahad<br><br></div>
<div class="gmail_quote">On Mon, May 19, 2008 at 1:58 PM, Michael Katai <<a href="mailto:mk.others@gmx.at">mk.others@gmx.at</a>> 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> rule<br> when<br>
then<br> func1(data1, data2);<br> end<br><br> function void func1(MyClass1 data1, MyClass2 data2)<br> {<br> func2(data1, data2);<br> }<br><br> function void func2(MyClass1 data1, MyClass2 data2)<br> {<br> }<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>