title: Managing large number of rules - Drools
body: <p>We have a business rules system being planned and we have chosen JBoss Drools to begin testing our use cases. We have planned to structure the DRL files as follows:</p>
  
  <pre><code>Global.drl
       Company1.drl
            Company1/Team1.drl
            Company1/Team2.drl
            ...
            Company1/TeamN.drl             
       Company2.drl
       ...
       CompanyN.drl
  </code></pre>
  
  <p>This structuring will help us to identify what rules to run for different classes of business objects.</p>
  
  <p>Now the problem is:</p>
  
  <ol>
  <li>How to know whether there is a similar/conflicting rule already present in a system of large number of rules.  When the rules system grows, does adding the new rule requires the developer to scan through all the rules manually to verify the conflicting rules, before writing new rule?</li>
  <li>How to correctly order the rules (using salience) in such a large rules system?</li>
  <li>Is there a way to quickly list rules of a particular category, which will help us to know the existing rules that are similar before adding new rule.</li>
  </ol>
  
  <p>Thanks</p>