You need to put a semicolon ; at the end of each ACTION statement.

 

 - irving -

 

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Cabou, Carl
Sent: Thursday, May 08, 2008 3:31 PM
To: Rules Users List
Subject: [rules-users] Multiple Action

 

All

 

I’m trying set up multiple action in a decision table.

 

RuleTable setCalculateRate

 

 

CONDITION

ACTION

ACTION

myData:CalcData

myData

comboboxPPTAL1 == "$1"

setCalculatedRate("$1")


setCalculatedPremium( myData.getTotalUnits() * $1 )

Radius input

Calculated Rate

Calculated Rate

A

18

18

B

50

50

C

100

100

 

But validation fails with :

 

unknown:1:9 mismatched token '[@2,9:9='<',<79>,1:9]' expecting set null

unknown:1:33 mismatched token: [@8,33:33='<',<79>,1:33]; expecting type RIGHT_PAREN

 

Any help would be appreciated.

 

Carl.