[rules-users] Changes are not reflected

ponmanirajan ponmani30mca at gmail.com
Tue Apr 17 09:43:53 EDT 2012


hi ,
        i have the changeset file as below for scanning the directory of drl
files.

<change-set xmlns="http://drools.org/drools-5.0/change-set"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd">
<add>
<resource source="file:/D:/users/myrules" type="DRL"/>
</add>
</change-set>

Here, i have my agent configuration code.

KnowledgeAgentConfiguration kaconf =
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
			kaconf.setProperty( "drools.agent.scanDirectories","true" );
			kaconf.setProperty( "drools.agent.newInstance","false" );
			
			kagent =KnowledgeAgentFactory.newKnowledgeAgent( "test agent", kaconf );
			System.out.println("Before Applying ChangeSet");
			
		
kagent.applyChangeSet(ResourceFactory.newFileResource("D:/users/ChangeSet.xml"));									
			System.out.println("After Applying Change Set");

			ResourceChangeScannerConfiguration sconf =
ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();
			sconf.setProperty("drools.resource.scanner.interval", "5");
			ResourceFactory.getResourceChangeScannerService().configure(sconf);
			
			ResourceFactory.getResourceChangeNotifierService().start();
			ResourceFactory.getResourceChangeScannerService().start();


It loads the drl files. But when i made changes to a drl file, it is not
reflected.

can anyone help me to find out the solution .



thanks in advance....

--
View this message in context: http://drools.46999.n3.nabble.com/Changes-are-not-reflected-tp3917286p3917286.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list