<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 &lt;<a href="mailto:kris.nuttycombe@gmail.com">kris.nuttycombe@gmail.com</a>&gt; 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&#39;d actually been<br>
looking at the wrong rule. I&#39;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&#39;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 &lt;<a href="mailto:scottjburrows@gmail.com">scottjburrows@gmail.com</a>&gt; wrote:<br>
&gt; Kris,<br>
&gt;<br>
&gt; You need a semicolon at the end of the addCharge statement.<br>
&gt;<br>
&gt; Scott Burrows<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jul 9, 2008 at 3:59 PM, Kris Nuttycombe &lt;<a href="mailto:kris.nuttycombe@gmail.com">kris.nuttycombe@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi, all,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m new to Drools, and am a bit confused by the compilation error that<br>
&gt;&gt; I&#39;m getting. From the line number, it appears to be in a generated<br>
&gt;&gt; Java file instead of in my rules file, so I&#39;m having a hard time<br>
&gt;&gt; debugging the issue. Here is the full error:<br>
&gt;&gt;<br>
&gt;&gt; Rule Compilation error : [Rule name=Assert Total Accumulator for<br>
&gt;&gt; Order, agendaGroup=init, salience=0, no-loop=false]<br>
&gt;&gt; &nbsp;com/gaiam/gcsi/rules/Rule_Assert_Total_Accumulator_for_Order_0.java<br>
&gt;&gt; (7:429) : Syntax error, insert &quot;;&quot; to complete BlockStatements<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Here is the rule that&#39;s being referred to:<br>
&gt;&gt;<br>
&gt;&gt; rule &quot;Add charge amounts to total.&quot;<br>
&gt;&gt; &nbsp; &nbsp;agenda-group &quot;calc_total&quot;<br>
&gt;&gt; when<br>
&gt;&gt; &nbsp; &nbsp;$total : Total()<br>
&gt;&gt; &nbsp; &nbsp;$event : ProgramBillingEvent( $amount : amount)<br>
&gt;&gt; then<br>
&gt;&gt; &nbsp; &nbsp;modify( $total ) {<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;addCharge($event, $amount)<br>
&gt;&gt; &nbsp; &nbsp;}<br>
&gt;&gt; end<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m working from the example modify block discussed in the docs at<br>
&gt;&gt;<br>
&gt;&gt; <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>
&gt;&gt; - I haven&#39;t been able to find other documentation referring to this<br>
&gt;&gt; construct.<br>
&gt;&gt;<br>
&gt;&gt; What am I doing wrong?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt; Kris<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<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>