You can count (using the accumulate function) all objects of SomeOtherType. Then, you can count (again, using the accumulate function) all object of SomeOtherType meeting all the constraints.<br><br>For better performance (if this is an issue) you might use the stepwise form of accumulate, ultimately returning a compound object containing both counts, or implement a custom accumulate function.<br>
<br>-W<br><br><br><div class="gmail_quote">2011/2/24 Petr Chelčický <span dir="ltr">&lt;<a href="mailto:petr.chelcicky@centrum.cz">petr.chelcicky@centrum.cz</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi! I&#39;m trying to write rules in Drools Expert. In the when part of the rule, I check some properties of an Application object. This object contains a List and I would like to check if a bunch of rules apply to all objects of SomeOtherType in this list. The rule should fire only when the constraints are valid for ALL objects in that list. How could this be done?<br>

_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>