Hi Sudhir,
What you need is an accumulate. I recommend you to read documentation about
it.
I've attached a test case of your scenario.
Best,
---------- Forwarded message ----------
From: Sudhir M <sudhir.cse(a)gmail.com>
Date: Wed, Jan 6, 2010 at 5:04 AM
Subject: [rules-users] doubt in using collections and nested objects
To: rules-users(a)lists.jboss.org
Hi All,
I have a scenario which is similar to the one detailed below
There is a class Student and each students has a list of subjects.
Each subject has a name and a flag which is an indicator of pass or
failure.
Now how can I write a rule which tells me if there are atleast 10
students who failed in a subject maths.
Thanks
sudhir.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti