Just change your rules, increase the project version and build the jar. Then 
either add the jar manually to KieRepository or make it available through 
maven, with kie-ci on the class path. Once the new jar is reachable, you can 
just call KieContainer.updateToVersion

Make sure you read this thoroughly:
http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/KIEChapter.html

Mark
On 15 Jan 2014, at 14:01, Shinsekai <[email protected]> wrote:

> Hi,
> 
> I use Drools (6.0.0) with KIE-api and I have a method to generate drl rules
> from templates+hashmaps. These rules are stored in a List<String>.
> Now, I would to pack up these generated rules and make them available to a
> preexistant KieSession.
> 
> Thus, a KieSession could access to standard KieBases (with rules stored in
> resource directories) AND to these generated rules (stored in an object, in
> memory).
> 
> Is it possible to do that?
> 
> I precise I don't want to use org.drools.internal.* classes.
> 
> Regards,
> 
> Alexandre
> 
> 
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/How-to-add-generated-rules-from-templates-to-a-KB-on-the-fly-tp4027695.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

Reply via email to