The options are set at the KB level, way before rules etc.. are added. So yes, you can initialize an empty KB and use changesets to add rules dynamically later. Notice this:
KnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(conf); /* knowledgeBase.addKnowledgePackages(builder.getKnowledgePackages()); */ return knowledgeBase; You can define a changeset in a file, or you can create it programmatically. On 05/03/2013 12:54 AM, riri wrote: > Thank you very much for the detailed explanation, things are clearer now. I > would have liked to be able to initialize the KA with an empty KB but I need > to be able to set the configuration options for it and for now I don't see > how that is done. Can the options, like STREAM mode be set when creating the > KB from the KA? > > Otherwise I will continue to re-create the environment before running a > session since for now it is the only option that works. > > Best regards > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Re-rules-users-KnowledgeAgent-to-update-knowledge-base-built-with-Guvnor-pkg-tp4023608p4023654.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
