Re: [rules-users] rule limit

2011-10-06 Thread Wolfgang Laun
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

Re: [rules-users] rule limit

2011-10-06 Thread Swindells, Thomas
...@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

Re: [rules-users] rule limit

2011-10-06 Thread Wolfgang Laun
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

Re: [rules-users] rule limit

2011-10-06 Thread slyfox
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

Re: [rules-users] rule limit

2011-10-06 Thread Ansgar Konermann
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

Re: [rules-users] rule limit

2011-10-05 Thread slyfox
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

Re: [rules-users] rule limit

2011-10-05 Thread Ansgar Konermann
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

Re: [rules-users] rule limit

2011-10-05 Thread Davide Sottara
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

Re: [rules-users] rule limit

2011-10-05 Thread Mark Proctor
.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

[rules-users] rule limit

2011-10-04 Thread Bobby Richards
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

Re: [rules-users] rule limit

2011-10-04 Thread Ansgar Konermann
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