<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 scanDirectories and 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><add> <resource source='file:src/main/rules/rulerep/' type='DRL' /> </add></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"
</div><div> when</div><div> eval (1==1)</div><div> then</div><div> 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 rulerep.</div><div>Am new to drools, any suggestions plz.</div><div><br></div><div>bst regards,</div><div>nadeem </div></td></tr></table><br>