[rules-users] Resuming the Flow: SESSION_ID, PROCESS_INSTANCE_ID, WORKITEM_ID

tolitius webakaunt at gmail.com
Thu Mar 25 23:31:32 EDT 2010


Hi Flow Crew,

    This is about reloading the session and resuming the flow.

    Let's say the flow reached one of its wait states, and was persisted.

    Two days later an "assigned actor" does his/her duties, and the flow can
be resumed.

    At this point, we need to call something, let's call it a
WorkflowService, that would have a resumeFlow( someBusinessId ) method that
will be called.

    Here is where the question starts...

    I understand there are three pieces in this puzzle: SESSION_ID,
PROCESS_INSTANCE_ID and WORKITEM_ID

    I also understand that in order to resume the flow, I need to get a hold
of that certain work item that is ready to be completed, and let the flow
know it is completed.

    But at the point, where I should resume the flow, I have no reference to
neither SESSION_ID, PROCESS_INSTANCE_ID or WORKFLOW_ID.

    1.  How are these three related to each other?

    2.  How do I find these three associated IDs?

    2.  Which one(s) do I need to resume the flow?

    3.  If I (somehow) get the reference to SESSION and PROCESS_INSTANCE
ids, how do I know which work item is ready to be completed?

Thank you,
/Anatoly
-- 
View this message in context: http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p607507.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list