Could you please attach an DebugKnowledgeAgentEventListener to your agent:
kagent.addEventListener(new DebugKnowledgeAgentEventListener());
and post the output?
I guess you run into the following problem.
kagent has a default to always create a new KnowledgeBase if something
changes. This does NOT modify your kbase reference. If you want to change
the already required kbase you have to set
KnowledgeAgentConfiguration aconf = KnowledgeAgentFactory
.newKnowledgeAgentConfiguration();
aconf.setProperty("drools.agent.newInstance", "false");
KnowledgeAgent kAgent = KnowledgeAgentFactory.newKnowledgeAgent(
"Agent", aconf);
kind regards,
Lukas Stampf
--
View this message in context:
http://drools.46999.n3.nabble.com/Rule-not-working-with-Change-set-xml-tp4020313p4020320.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users