Here is a code example of creating kie modules in memory and upgrading existing kbases/ksessions:

https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/IncrementalCompilationTest.java#L106

   It is a test case, but maybe it will be easier to follow. We are working on additional ways of doing similar things as well.

   Edson


On Thu, Nov 28, 2013 at 11:32 AM, Mark Proctor <mproctor@codehaus.org> wrote:
You can build KieModules programmatically too, in memory - without touching disk.
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 28 Nov 2013, at 14:56, kellyajp <kellyajp@yahoo.co.uk> wrote:

> This need to be a pragmatic operation and not achieved via a code release. I
> can not see how this can be done using the new Kie interfaces without
> storing the DRL on the filesystem. Am I missing something or can I still
> continue to use the Drools 5 API's?
>
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Drools-6-Dynamic-Rules-tp4026976p4026990.html
> Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com.
> _______________________________________________
> rules-dev mailing list
> rules-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev


_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev



--
  Edson Tirelli
  Principal Software Engineer 
  Red Hat Business Systems and Intelligence Group