Hi all,<br><br>I am converting over to Drools 5 and have run into a problem with AccumulateFunction. I changed my classes to implement org.drools.runtime.rule.AccumulateFunction however this causes the ClassCastException below:<br>
<br>Caused by: java.lang.ClassCastException: au.com.promedicus.rules.MaxPriceAccumulateFunction cannot be cast to org.drools.base.accumulators.AccumulateFunction<br>&nbsp;&nbsp;&nbsp; at org.drools.compiler.PackageBuilderConfiguration.getAccumulateFunction(PackageBuilderConfiguration.java:489)<br>
&nbsp;&nbsp;&nbsp; at org.drools.rule.builder.dialect.java.JavaAccumulateBuilder.build(JavaAccumulateBuilder.java:108)<br>&nbsp;&nbsp;&nbsp; ...<br><br>My guess is this is a bug. For now I will just go back to implementing org.drools.base.accumulators.AccumulateFunction.<br>
<br>cheers<br>Steve<br clear="all"><br>-- <br>Steven Williams<br><br>Supervising Consultant<br><br>Object Consulting<br>Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501<br><a href="mailto:steven.williams@objectconsulting.com.au">steven.williams@objectconsulting.com.au</a><br>
<a href="http://www.objectconsulting.com.au">www.objectconsulting.com.au</a><br><br>consulting | development | training | support<br>our experience makes the difference<br>