Hi All, <div><br></div><div>   We have an application where we are using JBPM for our processes. In our application there&#39;s a strong requirement to maintain the same KnowledgeSession between restarts even though that we are not using rules at all, just BPMN 2.0 processes ( we are aware that JBPM needs it to maintain process state, workitem state and so on ...  but don&#39;t need neither rules nor ReteOO loops in our app ).</div>

<div><br></div><div>   Now we got to the tricky task handling part, were we have several handlers that depend on I/O which blocks the entire execution of the processes. And just because all our application depends on the *same* shared stored knowledge session, all our other parallel processes that need to execute processes are waiting ( like in a queue ) for the I/O to finish and execute themselves whenever the execution of JBPM gets blocked by I/O.</div>

<div><br></div><div>   We&#39;ve tried to execute our handlers in different threads, but as we are running inside a persisted environment JBPM looses the JTA transaction as it is not bound to the current thread. Seems not a solution. We tried then to implement thread communication mechanisms, yield() and notify() and just made the problem worse.</div>

<div><br></div><div>   Any insights on the subject? How can we execute parallel non-blocking processes inside a shared and persisted KnowlegdeSession with JBPM?</div><div><br></div><div>Greets,  <br><div><br clear="all">
Alberto R. Galdo<br>
<a href="mailto:argaldo@gmail.com" target="_blank">argaldo@gmail.com</a><br><br><br><br>
</div></div>