cheap is a bash oneliner:
LIMIT=10; PATH=some.drl; if [ $(grep '^\s*rule\' $PATH | wc -l)
-gt $LIMIT ]; then echo more than $LIMIT rules in $PATH; fi
-W
D.
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-rule-limit-tp3394660p3398277.html
Sent from
...@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: 06 October 2011 08:14
To: Rules Users List
Subject: Re: [rules-users] rule limit
On 6 October 2011 01:09, Davide Sottara dso...@gmail.com wrote:
As far as I know, the parser does not check the number of rules in a
DRL Maybe you could do
you want to limit the number of
rules!
Thomas
-Original Message-
From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: 06 October 2011 08:14
To: Rules Users List
Subject: Re: [rules-users] rule limit
On 6 October
technically do a lot even in one rule)
rule a //1
when
then
end
rule b //2
when
then
end
rule c //3
when
then
end
and so on...
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-rule-limit-tp3394660p3400312.html
Sent from the Drools: User forum mailing list archive
Am 06.10.2011 18:48, schrieb slyfox:
thanks for all of the responses, fun to read :)
Sorry I thought it was pretty strait forward question. I would assume
somehow the parser 'knows' how many rules are in a drl file
I do not want an over ambitious user to just create rule after rule
is this something I missed in the doc or would you mind pointing me in the
direction of how to accomplish this?
thanks
Bobby
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-rule-limit-tp3394660p3398077.html
Sent from the Drools: User forum mailing list archive
Hi Slyfox,
nice to read you.
Am 05.10.2011 23:49, schrieb slyfox:
is this something I missed in the doc
As you are talking about the doc, it seems you have a particular part
of the solution already in mind (the product/tool you'd like to use to
enforce the size limit). Up to now, you did not
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
.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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Is it possible to limit the number of rules in a drl file?
Thanks,
Bobby
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Am 04.10.2011 23:27, schrieb Bobby Richards:
Is it possible to limit the number of rules in a drl file?
Yes.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
11 matches
Mail list logo