[rules-users] doubt in using collections and nested objects

Esteban Aliverti esteban.aliverti at gmail.com
Wed Jan 6 07:46:39 EST 2010


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 at gmail.com>
Date: Wed, Jan 6, 2010 at 5:04 AM
Subject: [rules-users] doubt in using collections and nested objects
To: rules-users at 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 at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



-- 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100106/5b8cc422/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StudentCollectionTest.java
Type: text/x-java
Size: 4828 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100106/5b8cc422/attachment.bin 


More information about the rules-users mailing list