[rules-users] rule limit

Mark Proctor mproctor at codehaus.org
Wed Oct 5 19:21:43 EDT 2011


On 06/10/2011 00:09, Davide Sottara wrote:
> As far as I know, the parser does not check the number of rules in a DRL
> Maybe you could do something like this:
>
> (i) use a KnowledgeBuilder to load the DRL resource;
> (ii) before you add the packages to the knowledgeBase, iterate over
> kBuilder.getKnowledgePackages() to find the package generated from your DRL;
> (iii) use getRules().size() on the package to check if the number of rules
> exceeds your desired threshold
Maybe someone can design a Rube Goldberg machine to address this?

Mark
>
> D.
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/rules-users-rule-limit-tp3394660p3398277.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
>
>





More information about the rules-users mailing list