<br> Well, seems the parser is raising the wrong message here... need to fix that... <br> But the syntax should be something like:<br><br>rule "calculate average"<br> when<br> $media : Number( doubleValue > 50000)
<br> from accumulate( Instance( $value : classValue ),<br> average($value))<br> then<br> System.out.println(media );<br>end<br><br>
[]s<br> Edson<br><br><br><br><br><div><span class="gmail_quote">2007/9/6, Isabelle Hupont <<a href="mailto:ihupont@ita.es">ihupont@ita.es</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi!<br><br>I'm integrating Weka with Drools v.4 and I have a parsing error while trying<br>to read the following DRL rule:<br><br>rule "calculate average"<br> when<br> $inst : Instance()
<br> $media : Double(double value > 50000)<br> from accumulate($value : inst.classValue()<br> average($value))<br> then<br>
System.out.println(media );<br>end<br><br>I have the following error:<br><br>org.drools.compiler.DroolsParserException: Unknown error while parsing. This<br>is a bug. Please contact the Development team.<br> at org.drools.compiler.DrlParser.compile
(DrlParser.java:180)<br> at org.drools.compiler.DrlParser.parse(DrlParser.java:61)<br> at<br>org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:158)<br> at com.sample.DroolsTest.readRule
(DroolsTest.java:67)<br> at com.sample.DroolsTest.main(DroolsTest.java:24)<br><br>What I am doing wrong?<br>Thx<br>--<br>View this message in context: <a href="http://www.nabble.com/parsing-error-using-accumulate-tf4390367.html#a12517682">
http://www.nabble.com/parsing-error-using-accumulate-tf4390367.html#a12517682</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________
<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @
<a href="http://www.jboss.com">www.jboss.com</a>