On 1/7/10, Sudhir M <sudhir.cse(a)gmail.com> wrote:
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
Hi Esteban,
I am able to add Subject to the collectList but not the Student. Is
that we can only accumulate nested objects not the fact itself?
Thanks,
sudhir.