Hi guys,<br>If you have the session and the process ID you can get the work item ID using something like:<br><br>((WorkItemNode)processInstance.getNodeInstances().iterator().next()).getWorkItemId();<br><br>If you need to fire an event, sometimes you need the process instance id and sometimes not, it depends on how you define the event (external or internal). <br>
<br>You should store related with you businessID the sessionId and the processId.<br><br><br><div class="gmail_quote">On Fri, Mar 26, 2010 at 2:21 AM, tolitius <span dir="ltr">&lt;<a href="mailto:webakaunt@gmail.com">webakaunt@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hi Kiran,<br>
<br>
   I usually don&#39;t post before doing &quot;homework&quot;. Unfortunately Drools Flow<br>
documentation is too high-level in order to actually understand how it all<br>
comes together without looking at the source code...<br>
<br>
   WorkflowService {<br>
    ...<br>
         resumeFlow ( someBusinessId ) {<br>
<br>
                  // NO SESSION_ID given<br>
                  // NO PROCESS_INSTANCE_ID given<br>
                  // NO WORKITEM_ID given (or &quot;ExecuteWorkItem&quot; parameter<br>
for that matter)<br>
<br>
         }<br>
    ...<br>
   }<br>
<br>
Again:<br>
<br>
   1.  How these three relate to each other?<br>
<br>
        examples of the answers: [ session has many processes, process has<br>
many workitems ], [session is singleton for the knowledge base given, and<br>
has many processes, which have many workitems], etc..<br>
<br>
   2. How do I find these IDs in the sample method above?<br>
<br>
   3. I understand &quot;workitemId&quot; can resume the flow, but do I need session<br>
and process IDs to get to that work item?<br>
<br>
   4. Given that multiple workitems may be completed, how do I know, having<br>
SESSION_ID and PROCESS_ID (which I hopefully can get from the question &quot;2&quot;)<br>
which workitem to mark as complete?<br>
<br>
Thank you,<br>
/Anatoly<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p629805.html" target="_blank">http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p629805.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>