[rules-users] parsing error using accumulate
Mark Proctor
mproctor at codehaus.org
Thu Sep 6 08:15:41 EDT 2007
$media : Double(double value > 50000)
"double value" has a space in it? that's not a valid field accessor..
Mark
Isabelle Hupont wrote:
> Hi!
>
> I'm integrating Weka with Drools v.4 and I have a parsing error while trying
> to read the following DRL rule:
>
> rule "calculate average"
> when
> $inst : Instance()
> $media : Double(double value > 50000)
> from accumulate($value : inst.classValue()
> average($value))
> then
> System.out.println(media );
> end
>
> I have the following error:
>
> org.drools.compiler.DroolsParserException: Unknown error while parsing. This
> is a bug. Please contact the Development team.
> at org.drools.compiler.DrlParser.compile(DrlParser.java:180)
> at org.drools.compiler.DrlParser.parse(DrlParser.java:61)
> at
> org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:158)
> at com.sample.DroolsTest.readRule(DroolsTest.java:67)
> at com.sample.DroolsTest.main(DroolsTest.java:24)
>
> What I am doing wrong?
> Thx
>
More information about the rules-users
mailing list