[rules-users] Drools Flow: Getting to the right Process from the re-loaded Session

tolitius webakaunt at gmail.com
Tue Mar 30 14:49:56 EDT 2010


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.



More information about the rules-users mailing list