Hi all,
I’m just starting to use drools, I am using it to
house the rules regarding settlement of sports markets and such my rule
packages should be relatively simple and straight forward (ie when match winner
= x then settle x as winner)
However my first attempt to create a drl is failing with the
following error
org.drools.rule.InvalidRulePackage:
[0,-1]: unknown:0:-1 mismatched token: [@-1,0:0='<no
text>',<-1>,0:-1]; expecting type END
and I cant find much documentation online to help
solve it.
The complete drl file is:
package xxx..rules.tennis
import xxx.object.Fact
import java.util.HashMap
import function xxx.Settle_Selection.settle_selection
rule "Player 1 wins match"
salience 100
agenda-group "tennis"
when
$f : Fact()
eval(($f.details["END_MATCH"].toUpper().toString().equal("TRUE")))
then
settle_selection("test",20001","W");
END
Thanks in advance,Alex