<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Kris,<div>that may be silly but have you tried to add the ";" after 'addCharge($event, $amount)'?</div><div><br></div><div>If you use the Java dialect for the RHS this IS mostly Java (it's just copied over into the generated code).</div><div>If in doubt, use "<span class="Apple-style-span" style="font-family: 'courier new'; font-size: 13px; line-height: 22px; ">-Ddrools.dump.dir=&lt;whatever" to check out the generated code.</span></div><div><br></div><div>--I&nbsp;</div><div><br></div><div><div>Am 09.07.2008 um 21:59 schrieb Kris Nuttycombe:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi, all,<br><br>I'm new to Drools, and am a bit confused by the compilation error that<br>I'm getting. From the line number, it appears to be in a generated<br>Java file instead of in my rules file, so I'm having a hard time<br>debugging the issue. Here is the full error:<br><br>Rule Compilation error : [Rule name=Assert Total Accumulator for<br>Order, agendaGroup=init, salience=0, no-loop=false]<br> &nbsp;com/gaiam/gcsi/rules/Rule_Assert_Total_Accumulator_for_Order_0.java<br>(7:429) : Syntax error, insert ";" to complete BlockStatements<br><br><br>Here is the rule that's being referred to:<br><br>rule "Add charge amounts to total."<br> &nbsp;&nbsp;&nbsp;agenda-group "calc_total"<br>when<br> &nbsp;&nbsp;&nbsp;$total : Total()<br> &nbsp;&nbsp;&nbsp;$event : ProgramBillingEvent( $amount : amount)<br>then<br> &nbsp;&nbsp;&nbsp;modify( $total ) {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addCharge($event, $amount)<br> &nbsp;&nbsp;&nbsp;}<br>end<br><br>I'm working from the example modify block discussed in the docs at<br><a href="http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html/ch02s05.html#d0e961">http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html/ch02s05.html#d0e961</a><br>- I haven't been able to find other documentation referring to this<br>construct.<br><br>What am I doing wrong?<br><br>Thanks,<br><br>Kris<br>_______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/rules-users<br></div></blockquote></div><br></body></html>