[rules-users] Rule not working with Change_set.xml

LStampf Lukas.Stampf at gmx.at
Wed Oct 17 05:28:59 EDT 2012


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.


More information about the rules-users mailing list