[rules-users] parsing error using accumulate

Isabelle Hupont ihupont at ita.es
Thu Sep 6 04:14:03 EDT 2007


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
-- 
View this message in context: http://www.nabble.com/parsing-error-using-accumulate-tf4390367.html#a12517682
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list