Thanks Esteban for a quick reply.
But when I run the test case I get the following exception
Caused by: java.lang.ClassCastException:
org.drools.user.test.StudentCollectionTest$Student
at
org.drools.base.accumulators.JavaAccumulatorFunctionExecutor.accumulate(JavaAccumulatorFunctionExecutor.java:110)
at org.drools.rule.Accumulate.accumulate(Accumulate.java:164)
... 41 more
Do I need to change something to make this work?
Please help me in this regard.
FYI - I using drools 5.0