[rules-users] Adding rules incrementally

Mark Proctor mproctor at codehaus.org
Thu Jan 9 13:07:41 EST 2014


each rule add/remove/update required you to rebuild, publish and consume (in the KieContainer) a new kjar.

The kjar will have ALL of the rules, a diff algorithm will only add the new one that is different.

Mark
On 9 Jan 2014, at 15:46, calcacuervo <calcacuervo at gmail.com> wrote:

> Hi Guys.
> 
> I am trying to add rules incrementally to the kbase, using the same
> ksession. I mean, when I have a new DRL, I receive it, and want to add it to
> the kbase (in memory), and the ksession I have will start to use this new
> rule too.
> 
> I have been using this example,
> 
> https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/IncrementalCompilationTest.java#L106
> 
> I can add new rules, but just passing all the DRLS, and creating a new
> KieFileSystem. I would like, when I have a new rule, just add (or modify),
> this rule to the working memory.
> 
> Is this possible? Any idea?
> 
> Thanks!
> 
> Demian
> 
> 
> 
> --
> View this message in context: http://drools.46999.n3.nabble.com/Adding-rules-incrementally-tp4027631.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