[rules-users] counting Facts

Wolfgang Laun wolfgang.laun at gmail.com
Mon Jul 25 13:06:00 EDT 2011


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

On 25 July 2011 17:20, pamerida <elpamm at hotmail.com> wrote:

> 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110725/3d6d8497/attachment.html 


More information about the rules-users mailing list