<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div>hi friends,</div><div><br></div><div>I am working with Knowledge Agent to automatic loading of resources (.drl, .java objects) into the statefullKnowledgeSession KB, and then firing them automatically. The problem is although I have set true the&nbsp;scanDirectories and&nbsp;scanResources configurations of the knowledge agent, but it does't loads the files from the subdirectories.</div><div><br></div><div>suppose, if I set in my changeSet.xml as:</div><div><div>&lt;add&gt;&nbsp;&lt;resource source='file:src/main/rules/rulerep/' type='DRL' /&gt;&nbsp;&lt;/add&gt;</div><div><br></div><div>and then put my rules package(including .drl/java objects) it does't loads that.</div><div><br></div><div>However if I put the simple drl file with a simple rule like, it loads it and fires also, successfully.</div><div><div>rule "Rule 01"
 &nbsp;&nbsp;</div><div>&nbsp;&nbsp; &nbsp;when</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;eval (1==1)</div><div>&nbsp;&nbsp; &nbsp;then</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;System.out.println("Rule 01 Works");</div><div>end</div><div><br></div></div></div><div>As we know that we can only reference java objects using packages in rule files. So I want to put a package carrying rules and referenced objects in the focused directory, into which the Knowledge agent is looking for the new resources. in my case it is&nbsp;rulerep.</div><div>Am new to drools, any suggestions plz.</div><div><br></div><div>bst regards,</div><div>nadeem&nbsp;</div></td></tr></table><br>