Wouldn't you be better off by writing one or two static methods or DRL functions to compute these sums? Going down from, down from, down from a fact in WM is not really a good design pattern.<br>-W<br><br><div class="gmail_quote">
On 25 July 2011 17:20, pamerida <span dir="ltr"><<a href="mailto:elpamm@hotmail.com">elpamm@hotmail.com</a>></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;">
Thanks man it works perfectly... :)<br>
But I have another scenario where inside each SegmentGroup7 theres a<br>
SegmentGroup14 and inside this group I have to verify a value inside another<br>
class called GoodsItemDetails, as in my last post I can "collect" all the<br>
occurrences with this code :<br>
<br>
$cuscar : Cuscar(); $group7: SegmentGroup7() from $cuscar.segmentGroup7;<br>
$group8 : SegmentGroup8() from $group7.segmentGroup8; $group14 :<br>
SegmentGroup14() from $group8.segmentGroup14; GoodsItemDetails(c7064 == "9"<br>
from $group14.gid );<br>
<br>
but again I want to count the number of facts, is there a way to do this??<br>
thanks so much in advance for your suggestions :)<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/counting-Facts-tp3192513p3197756.html" target="_blank">http://drools.46999.n3.nabble.com/counting-Facts-tp3192513p3197756.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>