I'm receiving the message bellow:<br><br>org.drools.rule.InvalidRulePackage: Rule Compilation error : [Rule name=Cliente pode alugar, agendaGroup=MAIN, salience=0, no-loop=false]<br> vcAluga/Rule_Cliente_pode_alugar_0.java (10:319) : teste cannot be resolved
<br> at org.drools.rule.Package.checkValidity(Package.java:408)<br> at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:288)<br> at rules.AluguelImediatoAspect.ajc$around$rules_AluguelImediatoAspect$1$55327fd6
(AluguelImediatoAspect.aj:31)<br> at controller.CtrlLocaoImediata.doRental(CtrlLocaoImediata.java:127)<br> at controller.CtrlLocaoImediata.EventHandler(CtrlLocaoImediata.java:284)<br> at controller.CtrlLocaoImediata.actionPerformed
(CtrlLocaoImediata.java:299)<br> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)<br> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)<br>...<br><br>Any idea?<br><br>Thanks!<br>
Rafael Alcemar<br><br><div><span class="gmail_quote">On 8/17/07, <b class="gmail_sendername">Rafael Alcemar</b> <<a href="mailto:rafael.alcemar@gmail.com">rafael.alcemar@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello guys! This is my first question for the list. I've defined a function in my DRL file to evaluate if a user can do a specific operation in my system. This function returns a boolean result. My question is if I can use this function in the test of LHS.
<br><br>For example:<br><br>rule "Cliente pode alugar"<br> when<br> eval(teste)<br> then<br> System.out.println("XXXXXX");<br> end<br><br><br>function boolean teste( ) {<br> return true;
<br>}<br><br><br>Please, if anybody has some help, send me.<br><br>Thanks!<br><span class="sg">Rafael Alcemar<br>
</span></blockquote></div><br>