[rules-users] drools 6 equivalent of addKnowledgePackages

pmander paul.s.mander at gmail.com
Mon Dec 2 12:38:21 EST 2013


Just doing some investigation of the drools 6 release. We dynamically build
our rules and use some thing like the following to bring them into a
stateful session:

KnowledgeBuilder builder = KnowledgeBuilderFactory.newKnowledgeBuilder();
builder.add(ResourceFactory.newReaderResource(new StringReader(
				compiledRules)), ResourceType.DRL);
KnowledgeBuilderErrors errors = builder.getErrors();
kbase.addKnowledgePackages(builder.getKnowledgePackages());

This appears to be deprecated but there is no indication in the javadoc for
what the alternative is.



--
View this message in context: http://drools.46999.n3.nabble.com/drools-6-equivalent-of-addKnowledgePackages-tp4027044.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list