<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div></div><div class="jive-rendered-content"><div>Hi,</div><div style="min-height: 8pt; height: 8pt; padding: 0px;">&nbsp;</div><div>After a few years of using JBPM4, we are evaluating JBPM5.</div><div>In our project we have lots of long-running processes, so we need to persist them.</div><div>We want a tight integration with our application and therefore we decided not to use Guvnor (maybe we should non the less?).</div><div style="min-height: 8pt; height: 8pt; padding: 0px;">&nbsp;</div><div>Anyway, at the moment we use one ksession per process instance.</div><div>Now I am wondering how to "revive" the kbase which is needed to load the ksession:</div><div style="min-height: 8pt; height: 8pt; padding: 0px;">&nbsp;</div><div><code class="jive-code jive-java">ksessionStatefull = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId,
 <strong>kbase</strong>, null, env);</code></div><div style="min-height: 8pt; height: 8pt; padding: 0px;">&nbsp;</div><div>As process instances can last days or weeks, it is quit possible that process definitions have been altered, </div><div>so
 to continue a ksession we need to restore the same kbase as used to 
start the session (we need to know version of the process definition 
which was used when creating the process instance), right?</div><div style="min-height: 8pt; height: 8pt; padding: 0px;">&nbsp;</div><div>(How) should we store the kbase which is needed to reload the ksession?</div><div style="min-height: 8pt; height: 8pt; padding: 0px;">&nbsp;</div><div>Thanks!</div><div style="min-height: 8pt; height: 8pt; padding: 0px;">&nbsp;</div><div>Michiel</div></div><div>&nbsp;</div><div>-----------------<br>http://www.codessentials.com - Your essential software, for free!<br>Follow us at http://twitter.com/#!/Codessentials</div></div></body></html>