<div dir="ltr">They are only needed on the RHS (Right Hand Side) of the rules where the syntax is Java like.<br><br clear="all">Scott Burrows<br><br><br><div class="gmail_quote">On Thu, Jul 10, 2008 at 11:00 AM, Kris Nuttycombe <<a href="mailto:kris.nuttycombe@gmail.com">kris.nuttycombe@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well, now I feel dumb. :) I finally figured out that I'd actually been<br>
looking at the wrong rule. I'm still a bit confused, though - what<br>
dictates whether or not a semicolon is required at the end of the<br>
line? In looking at a lot of the example code (for example,<br>
PetStore.drl) the placement of semicolons seems pretty haphazard, and<br>
I haven't been able to find where in the documentation that is<br>
covered.<br>
<br>
Thanks for your help,<br>
<br>
Kris.<br>
<br>
On Thu, Jul 10, 2008 at 6:15 AM, Scott Burrows <<a href="mailto:scottjburrows@gmail.com">scottjburrows@gmail.com</a>> wrote:<br>
> Kris,<br>
><br>
> You need a semicolon at the end of the addCharge statement.<br>
><br>
> Scott Burrows<br>
><br>
><br>
><br>
> On Wed, Jul 9, 2008 at 3:59 PM, Kris Nuttycombe <<a href="mailto:kris.nuttycombe@gmail.com">kris.nuttycombe@gmail.com</a>><br>
> wrote:<br>
>><br>
>> 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>
>> 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>
>> agenda-group "calc_total"<br>
>> when<br>
>> $total : Total()<br>
>> $event : ProgramBillingEvent( $amount : amount)<br>
>> then<br>
>> modify( $total ) {<br>
>> addCharge($event, $amount)<br>
>> }<br>
>> end<br>
>><br>
>> I'm working from the example modify block discussed in the docs at<br>
>><br>
>> <a href="http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html/ch02s05.html#d0e961" target="_blank">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>
>> <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>
><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>
><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></div>