[jboss-user] [jBPM] - Re: persisted stateful sessions and knowledge base changes

Jordi Alvarez do-not-reply at jboss.com
Wed Oct 5 05:31:57 EDT 2011


Jordi Alvarez [http://community.jboss.org/people/jordi_alvarez] created the discussion

"Re: persisted stateful sessions and knowledge base changes"

To view the discussion, visit: http://community.jboss.org/message/630191#630191

--------------------------------------------------------------
Hi Maciej, I have tried it both ways, resulting in error both.

At the present moment we have been working in a workaround in which we have patched the drools code that loads the session in order to perform a migration from one database to another. And our first experiments tell us that this is working.

We have separated the load process in two parts: a first in which the first part of the session is read using the "old" knowledge base. This allows to build the structure associated to the rete tree correctly in the old knowledge base.

Then, it comes a second part in which a second session is built on the "new" knowledge base, and the facts of the first session are added to it (we added an activation filter in order to avoid activations derived from this initial load to be executed). The the load process continues with the rest of the session information but over this second session (timers and processes mainly).

This is in fact too tricky, but it has shown to work till the moment, while we explore further a definitive solution in the line you commented (guvnor, compiled packages, snaptshots, in combination with the knowledge agent), if possible without performing any drools patch.

regards,
Jordi
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/630191#630191]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111005/ea11f487/attachment.html 


More information about the jboss-user mailing list