Excuse the typo:<br>   s/$sgroup8/$group8/<br>-W<br><br><div class="gmail_quote">On 23 July 2011 00:22, pamerida <span dir="ltr">&lt;<a href="mailto:elpamm@hotmail.com">elpamm@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everyone,<br>
<br>
I need to perform a count of facts, but my problem is that the facts are<br>
nested inside other facts<br>
<br>
My model would be something like this<br>
a class called Cuscar that is like the main class that contains the other<br>
facts<br>
inside the class Cuscar I have a list called segmentGroup7  (private<br>
List&lt;SegmentGroup7&gt; segmentGroup7), and inside each SegmentGroup7 I have<br>
another list (List&lt;SegmentGroup8&gt; segmentGroup8)<br>
<br>
with this rule Im able to get all the facts of the type segmentGroup8<br>
<br>
$cuscar : Cuscar(); $group7: SegmentGroup7() from $cuscar.segmentGroup7;<br>
$group8 : SegmentGroup8() from $group7.segmentGroup8;<br>
<br>
but I would like to count the number of facts, any idea how?? thanks so much<br>
for your help :)<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/counting-Facts-tp3192513p3192513.html" target="_blank">http://drools.46999.n3.nabble.com/counting-Facts-tp3192513p3192513.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>