[rules-users] Compilation error: "Syntax error, insert "; " to complete BlockStatements "

Ingomar Otter iotter at mac.com
Wed Jul 9 16:27:42 EDT 2008


Kris,
that may be silly but have you tried to add the ";" after  
'addCharge($event, $amount)'?

If you use the Java dialect for the RHS this IS mostly Java (it's just  
copied over into the generated code).
If in doubt, use "-Ddrools.dump.dir=<whatever" to check out the  
generated code.

--I

Am 09.07.2008 um 21:59 schrieb Kris Nuttycombe:

> Hi, all,
>
> I'm new to Drools, and am a bit confused by the compilation error that
> I'm getting. From the line number, it appears to be in a generated
> Java file instead of in my rules file, so I'm having a hard time
> debugging the issue. Here is the full error:
>
> Rule Compilation error : [Rule name=Assert Total Accumulator for
> Order, agendaGroup=init, salience=0, no-loop=false]
>  com/gaiam/gcsi/rules/Rule_Assert_Total_Accumulator_for_Order_0.java
> (7:429) : Syntax error, insert ";" to complete BlockStatements
>
>
> Here is the rule that's being referred to:
>
> rule "Add charge amounts to total."
>    agenda-group "calc_total"
> when
>    $total : Total()
>    $event : ProgramBillingEvent( $amount : amount)
> then
>    modify( $total ) {
>        addCharge($event, $amount)
>    }
> end
>
> I'm working from the example modify block discussed in the docs at
> http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html/ch02s05.html#d0e961
> - I haven't been able to find other documentation referring to this
> construct.
>
> What am I doing wrong?
>
> Thanks,
>
> Kris
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080709/48afc8d1/attachment.html 


More information about the rules-users mailing list