The KA should be able to update a knowledge base. Common errors include:
1) Not starting the ResourceChangeScanner and the ResourceChangeNotfier (remember to stop them to prevent memory leaks)
2) An error in the changeset, pointing to non existing resources (check the logs)
3) Loading resources with compile time errors (again, check the logs)
4) Not setting the "newInstance" flag, which will cause the KA to create a new knowledge base rather than updating existing ones.
To provide more specific advice, it would be useful to see yours code.
There could always be a bug, but we'd need to confirm and reproduce it.
Best
Davide
I already had this configured and still the changes were not detected. I am really wondering if the knowledge agent can update a knowledge base built with Guvnor urls when the agent uses a pre existing knowledge base. Maybe it is just not possible or I am doing something very wrong in my code.
On Wed, May 1, 2013 at 6:59 PM, Roger Swanson <roger.swanson@issinc.com> wrote:
I also had an issue at one point where the agent detected new knowledge but it didn't seem to load within the current knowledge base. I was able to fix it via the agent config:
KnowledgeAgentConfiguration agentConfig = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
agentConfig.setProperty("drools.agent.newInstance", "false");
KnowledgeAgent agent = KnowledgeAgentFactory.newKnowledgeAgent("myagent", agentConfig);
-----Original Message-----
From: riri [mailto:irina.adam@gmail.com]
Sent: Wednesday, May 01, 2013 6:25 AM
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] KnowledgeAgent to update knowledge base built with Guvnor pkg
Nobody has any ideas on how to solve this? I am willing to try anything that might work short of re-creating the knowledge base everytime I start a new session.
And when using the changeSet() method for the knowledge agent, how would one set the knowledge base properties? Like functioning in STREAM mode and not CLOUD.
Please, anyone, I really need your help.
--
View this message in context: http://drools.46999.n3.nabble.com/KnowledgeAgent-to-update-knowledge-base-built-with-Guvnor-pkg-tp4023592p4023603.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users