[rules-users] rule limit

Davide Sottara dsotty at gmail.com
Wed Oct 5 19:09:46 EDT 2011


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

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.



More information about the rules-users mailing list