Looking at the test case from Edson, quoted below, it appears that there's no way to reuse a current session when upgrading the kbase rules? I need to add and remove rules on the fly, and so if I have a stateful session, does this mean I need to dispose of the current session, upgrade the container, create a new session, and repopulate it with all my objects?
I was hoping to simply rebuild the repository, call kContainer.updateToVersion(), and have the the session (with all my objects still populated) automatically use that new version of the rules repository. Is this not possible? Thanks, Joseph > Edson Tirelli-4 wrote > 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 -- View this message in context: http://drools.46999.n3.nabble.com/Dynamic-rules-in-Drools-6-tp4027833.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users