yes.. but he was asking about signaling events, continuing custom work items and human tasks.. <br>that&#39;s why you see a lot of code snippets. <br><br><div class="gmail_quote">On Fri, Mar 26, 2010 at 8:56 PM, Kris Verlaenen <span dir="ltr">&lt;<a href="mailto:Kris.Verlaenen@cs.kuleuven.be">Kris.Verlaenen@cs.kuleuven.be</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;">You should basically only know the workItemId.  Whenever you have some<br>
task that needs to be executed externally (and could take some time), a<br>
new work item will be created.  When that work is finished, the work<br>
item manager should be notified (using<br>
manager.completeWorkItem(workItem.getId(), null)).<br>
<br>
If you need to know what work needs to be completed, you should probably<br>
make sure that your work item handler knows this.  For example, our work<br>
item handler implementation for human tasks creates a new task in the<br>
database every time a human task work item needs to be executed (and<br>
stores the associated work item id in the db as well).  That allows a<br>
user to ask the human task service for all tasks that still need to be<br>
executed.  If the user completes the task, the manager is also signaled<br>
that the work item has been completed (using manager.completeWorkItem).<br>
<br>
So while you could use the code fragments that other have provided in<br>
related mails already, I&#39;m not sure you actually need those, as the<br>
handler should be storing most info and signal the completion of the<br>
work item using the work item id.<br>
<font color="#888888"><br>
Kris<br>
</font><div><div></div><div class="h5"><br>
Quoting tolitius &lt;<a href="mailto:webakaunt@gmail.com">webakaunt@gmail.com</a>&gt;:<br>
<br>
&gt;<br>
&gt; Hi Flow Crew,<br>
&gt;<br>
&gt;     This is about reloading the session and resuming the flow.<br>
&gt;<br>
&gt;     Let&#39;s say the flow reached one of its wait states, and was<br>
&gt; persisted.<br>
&gt;<br>
&gt;     Two days later an &quot;assigned actor&quot; does his/her duties, and the<br>
&gt; flow can<br>
&gt; be resumed.<br>
&gt;<br>
&gt;     At this point, we need to call something, let&#39;s call it a<br>
&gt; WorkflowService, that would have a resumeFlow( someBusinessId )<br>
&gt; method that<br>
&gt; will be called.<br>
&gt;<br>
&gt;     Here is where the question starts...<br>
&gt;<br>
&gt;     I understand there are three pieces in this puzzle: SESSION_ID,<br>
&gt; PROCESS_INSTANCE_ID and WORKITEM_ID<br>
&gt;<br>
&gt;     I also understand that in order to resume the flow, I need to get<br>
&gt; a hold<br>
&gt; of that certain work item that is ready to be completed, and let the<br>
&gt; flow<br>
&gt; know it is completed.<br>
&gt;<br>
&gt;     But at the point, where I should resume the flow, I have no<br>
&gt; reference to<br>
&gt; neither SESSION_ID, PROCESS_INSTANCE_ID or WORKFLOW_ID.<br>
&gt;<br>
&gt;     1.  How are these three related to each other?<br>
&gt;<br>
&gt;     2.  How do I find these three associated IDs?<br>
&gt;<br>
&gt;     2.  Which one(s) do I need to resume the flow?<br>
&gt;<br>
&gt;     3.  If I (somehow) get the reference to SESSION and<br>
&gt; PROCESS_INSTANCE<br>
&gt; ids, how do I know which work item is ready to be completed?<br>
&gt;<br>
&gt; Thank you,<br>
&gt; /Anatoly<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt;<br>
<a href="http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p607507.html" target="_blank">http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p607507.html</a><br>

&gt; Sent from the Drools - User mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<br>
<br>
<br>
<br>
</div></div><div class="im">Disclaimer: <a href="http://www.kuleuven.be/cwis/email_disclaimer.htm" target="_blank">http://www.kuleuven.be/cwis/email_disclaimer.htm</a><br>
_______________________________________________<br>
</div><div><div></div><div class="h5">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>