[rules-users] RemoveIdentities with KnowledgeAgent
rjr201
rich.j.riley at gmail.com
Tue Feb 19 07:02:02 EST 2013
Hi,
I'm using a KnowledgeAgent to create a KnowledgeBase. However, I need to
turn off Identities. In previous projects (not using knowledgeAgent) I've
done:
RuleBaseConfiguration conf = new RuleBaseConfiguration();
conf.setRemoveIdentities( true );
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(conf);
I'm sure there is a very similar approach with the KAgent, but I can't seem
work out what it is. I thought maybe something like this:
KnowledgeAgentConfiguration conf =
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
conf.setProperty("drools.removeIdentities", "true");
kagent = KnowledgeAgentFactory.newKnowledgeAgent("MyAgent", conf);
But that doesn't seem to work. Any help with this would be greatly
appreciated.
Regards,
Rich.
--
View this message in context: http://drools.46999.n3.nabble.com/RemoveIdentities-with-KnowledgeAgent-tp4022444.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list