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.
-W
Thanks man it works perfectly... :)
But I have another scenario where inside each SegmentGroup7 theres a
SegmentGroup14 and inside this group I have to verify a value inside another
class called GoodsItemDetails, as in my last post I can "collect" all the
occurrences with this code :
$cuscar : Cuscar(); $group7: SegmentGroup7() from $cuscar.segmentGroup7;
$group8 : SegmentGroup8() from $group7.segmentGroup8; $group14 :
SegmentGroup14() from $group8.segmentGroup14; GoodsItemDetails(c7064 == "9"
from $group14.gid );
but again I want to count the number of facts, is there a way to do this??
thanks so much in advance for your suggestions :)
--
View this message in context: http://drools.46999.n3.nabble.com/counting-Facts-tp3192513p3197756.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users