[rules-users] Compiled rules differ KnowledgeAgent vs ResourceChangeScanner

asiftasleem asiftasleem at gmail.com
Mon Feb 25 12:51:11 EST 2013


Hi lhorton,

I am struggling with ResourceChangeScanner. Rules are loaded perfectly
during server start up. But any changes does not appear.

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:drools="http://drools.org/schema/drools-spring"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
    http://drools.org/schema/drools-spring
https://raw.github.com/droolsjbpm/droolsjbpm-integration/5.5.0.Final/drools-container/drools-spring/src/main/resources/org/drools/container/spring/drools-spring-1.7.0.xsd"
default-autowire="byName">
      
    <drools:grid-node id="node1"></drools:grid-node>    
    <drools:resource id="res1" type="CHANGE_SET"
source="file:///d:/changeSet.xml"/>    
    <drools:resource-change-scanner id="res-scanner1" interval="15"
enabled="true"/>
    <drools:kbase id="kbase1" node="node1"/>    
    <drools:kagent id="kagent1" kbase="kbase1" new-instance="false">
    	<drools:resources>
    		<drools:resource ref="res1"></drools:resource>			    
    	</drools:resources>   	
    </drools:kagent>       
    <drools:ksession id="ksession1" type="stateless"  kbase="kbase-billing"
/>

</beans>

Following is my change set xml file

<?xml version="1.0" encoding="UTF-8"?>
<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:/abc.pkg" type="PKG"/>
  </add>
  
</change-set>

When I update the abc.pkg file or make changes to this changeSet.xml file
with remove and add packages, it does not reflect in the application. 

Any clues?

Regards,
AT




--
View this message in context: http://drools.46999.n3.nabble.com/Compiled-rules-differ-KnowledgeAgent-vs-ResourceChangeScanner-tp4018608p4022579.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list