<div dir="ltr"><br><div>   Here is a code example of creating kie modules in memory and upgrading existing kbases/ksessions:</div><div><br></div><div><a href="https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/IncrementalCompilationTest.java#L106">https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/IncrementalCompilationTest.java#L106</a><br>
</div><div><br></div><div>   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.</div><div><br></div><div>   Edson</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Nov 28, 2013 at 11:32 AM, Mark Proctor <span dir="ltr">&lt;<a href="mailto:mproctor@codehaus.org" target="_blank">mproctor@codehaus.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can build KieModules programmatically too, in memory - without touching disk.<br>
<a href="http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html/KIEChapter.html" target="_blank">http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html/KIEChapter.html</a><br>
<br>
4.2.2.4. Defining a KieModule programmatically<br>
<br>
4.2.5.9. Programaticaly build a Simple KieModule with Defaults<br>
<br>
4.2.5.10. Programaticaly build a KieModule using Meta Models<br>
<span class="HOEnZb"><font color="#888888"><br>
Mark<br>
</font></span><div class="HOEnZb"><div class="h5">On 28 Nov 2013, at 14:56, kellyajp &lt;<a href="mailto:kellyajp@yahoo.co.uk">kellyajp@yahoo.co.uk</a>&gt; wrote:<br>
<br>
&gt; This need to be a pragmatic operation and not achieved via a code release. I<br>
&gt; can not see how this can be done using the new Kie interfaces without<br>
&gt; storing the DRL on the filesystem. Am I missing something or can I still<br>
&gt; continue to use the Drools 5 API&#39;s?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-6-Dynamic-Rules-tp4026976p4026990.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-6-Dynamic-Rules-tp4026976p4026990.html</a><br>

&gt; Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; rules-dev mailing list<br>
&gt; <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">  Edson Tirelli<br>  Principal Software Engineer <div>  Red Hat Business Systems and Intelligence Group<br><br></div></div>
</div>