Guvnor Drools 5.6.Final:使用guvnor部署最新规则时,不会对知识库进行动态更新

时间:2014-03-05 05:27:45

标签: drools drools-guvnor guvnor

使用Guvnor Drool 5.5时,相同的代码工作,我更新到流口水5.6.Final它停止运行知识库的运行时更新。

KnowledgeAgentConfiguration kaconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration(); 
kaconf.setProperty( "drools.agent.scanDirectories","false" ); 
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( name, kaconf );
// moniter KnowledgeAgent
kagent.monitorResourceChangeEvents(true);
kagent.addEventListener(new KBaseChangeEventListener());
kagent.applyChangeSet( ResourceFactory.newClassPathResource("META-INF/ChangeSet.xml") );
startResourceChangeScannerService();
startResourceChangeNotifierService();
kbase = kAgent.getKnowledgeBase();

请帮帮我。

0 个答案:

没有答案