[jboss-user] [jBPM] - Configure KnowledgeAgent in Drools-Spring
TC ONG
do-not-reply at jboss.com
Sat Jun 9 05:44:20 EDT 2012
TC ONG [https://community.jboss.org/people/devilkazuya99] created the discussion
"Configure KnowledgeAgent in Drools-Spring"
To view the discussion, visit: https://community.jboss.org/message/738927#738927
--------------------------------------------------------------
I have my spring setting and code:
<drools:kbase id="kbase" >
<drools:resources>
<!-- <drools:resource id="oldDroolsPackage" type="PKG" source="file:/var/geneoz/RulesEngine.object"></drools:resource> -->
<drools:resource id="newTailingProcedure" type="BPMN2" source="file:/var/geneoz/HumanTaskFlow.bpmn" />
<drools:resource id="tes" type="DRF" source="file:/Users/tcong/Documents/eclipse_workspace_4.1/drools_tools/rules/Ozgene/v2/TailingProcedure.rf" />
</drools:resources>
</drools:kbase>
<drools:kagent kbase="kbase" id="knowledgeAgent" new-instance="true" >
</drools:kagent>
<drools:resource-change-scanner id="resourceChangeScanner" interval="10" />
@Autowired
private ResourceChangeScanner resourceChangeScanner;
...
resourceChangeScanner.start();
resourceChangeScanner.setSystemEventListener( ... )
works fine. But when I modify one of my file, the resource scanner nitofies it but then do nothing. Look at the log below.
DEBUG 2012-05-31 13:28:50,019 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:00,019 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:10,019 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:10,020 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
DEBUG 2012-05-31 13:29:20,020 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:20,021 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
DEBUG 2012-05-31 13:29:30,022 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:30,022 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
DEBUG 2012-05-31 13:29:40,022 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:40,023 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
DEBUG 2012-05-31 13:29:50,023 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:29:50,023 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
DEBUG 2012-05-31 13:30:00,023 (RulesEngineManager.java:119) - ResourceChangeScanner attempt to scan 2 resources
DEBUG 2012-05-31 13:30:00,024 (RulesEngineManager.java:119) - ResourceChangeScanner *modified resource*=[UrlResource path='file:/var/geneoz/HumanTaskFlow.bpmn'] : 1338441674000 : 1338442130000
It keeps on saying resource modified but did not do anything else.
I'm sure I'm missing something here...
Any help please...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/738927#738927]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120609/c1d068d9/attachment-0001.html
More information about the jboss-user
mailing list