the processInstanceId is very related with the business information that you store about the business entity that you want to process.
If you are designing the solution, you must propose where do you want to store it. I don't know your business entities so I cannot suggest where to store that information.
If you don't have another stateful thing, the information can go to the database.

On Tue, Mar 30, 2010 at 2:49 PM, tolitius <webakaunt@gmail.com> wrote:

ok, let me be more specific.

Wait state is reached (request is sent to an external system), the flow is
persisted, the thread that persisted the flow is gone.

Now, the response came back from the external system, and now would be a
good time to resume the flow (reload the session):

StatefulKnowledgeSession ksession =
JPAKnowledgeService.loadStatefulKnowledgeSession( sessionId, kbase, null,
env );

let's say the session is resumed. Now, having a "ksession", how do I get to
the right PROCESS_INSTANCE_ID, so I can ksession.getProcessInstance()?

Thank you,
/Anatoly

( P.S. No HTTP Session, no other stateful things besides DB. I would not
want to have my business entities know about something as low level as a
Drools Flow session )

--
View this message in context: http://n3.nabble.com/Drools-Flow-Getting-to-the-right-Process-from-the-re-loaded-Session-tp686219p686532.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -