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

tolitius webakaunt at gmail.com
Fri Mar 26 02:21:39 EDT 2010


Hi Kiran,

   I usually don't post before doing "homework". Unfortunately Drools Flow
documentation is too high-level in order to actually understand how it all
comes together without looking at the source code...

   WorkflowService {
    ...
         resumeFlow ( someBusinessId ) {
         
                  // NO SESSION_ID given
                  // NO PROCESS_INSTANCE_ID given
                  // NO WORKITEM_ID given (or "ExecuteWorkItem" parameter
for that matter)
         
         }
    ...
   }

Again:
 
   1.  How these three relate to each other?

        examples of the answers: [ session has many processes, process has
many workitems ], [session is singleton for the knowledge base given, and
has many processes, which have many workitems], etc..

   2. How do I find these IDs in the sample method above?

   3. I understand "workitemId" can resume the flow, but do I need session
and process IDs to get to that work item?

   4. Given that multiple workitems may be completed, how do I know, having
SESSION_ID and PROCESS_ID (which I hopefully can get from the question "2")
which workitem to mark as complete?

Thank you,
/Anatoly


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



More information about the rules-users mailing list