[rules-users] drools 6 equivalent of addKnowledgePackages

Mark Proctor mproctor at codehaus.org
Mon Dec 2 19:05:53 EST 2013


I’ve sent a few emails on this now. See docs:
http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html/KIEChapter.html
4.2.2.4. Defining a KieModule programmatically
4.2.5.9. Programaticaly build a Simple KieModule with Defaults
4.2.5.10. Programaticaly build a KieModule using Meta Models

Mark


On 2 Dec 2013, at 17:38, pmander <paul.s.mander at gmail.com> wrote:

> 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.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list