Hi everybody.<br><br>I configured the session persistence and persisted an instantiated process. When I get the session from the database and use the method getProcessInstances(), it returns an empty collection. But, when I call getProcessInstance(1), and 1 is the InstanceId of the ProcessInstanceInfo (table that contains the process instance), I get the correct process instance. Is this a bug? See the code below.<br>
<br>statefulSession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId, knowledgeBase, null, environment);<br><br>Collation&lt;ProcessInstance&gt; processInstances = statefulSession.getProcessInstances(); // FAIL - return empty collection<br>
<br>ProcessInstance processInstance = statefulSession.getProcessInstance(1); // OK - return the process instance<br><br><br>Regards,<br>Anderson<br>