yes.. but he was asking about signaling events, continuing custom work items and human tasks.. <br>that'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"><<a href="mailto:Kris.Verlaenen@cs.kuleuven.be">Kris.Verlaenen@cs.kuleuven.be</a>></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'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 <<a href="mailto:webakaunt@gmail.com">webakaunt@gmail.com</a>>:<br>
<br>
><br>
> Hi Flow Crew,<br>
><br>
> This is about reloading the session and resuming the flow.<br>
><br>
> Let's say the flow reached one of its wait states, and was<br>
> persisted.<br>
><br>
> Two days later an "assigned actor" does his/her duties, and the<br>
> flow can<br>
> be resumed.<br>
><br>
> At this point, we need to call something, let's call it a<br>
> WorkflowService, that would have a resumeFlow( someBusinessId )<br>
> method that<br>
> will be called.<br>
><br>
> Here is where the question starts...<br>
><br>
> I understand there are three pieces in this puzzle: SESSION_ID,<br>
> PROCESS_INSTANCE_ID and WORKITEM_ID<br>
><br>
> I also understand that in order to resume the flow, I need to get<br>
> a hold<br>
> of that certain work item that is ready to be completed, and let the<br>
> flow<br>
> know it is completed.<br>
><br>
> But at the point, where I should resume the flow, I have no<br>
> reference to<br>
> neither SESSION_ID, PROCESS_INSTANCE_ID or WORKFLOW_ID.<br>
><br>
> 1. How are these three related to each other?<br>
><br>
> 2. How do I find these three associated IDs?<br>
><br>
> 2. Which one(s) do I need to resume the flow?<br>
><br>
> 3. If I (somehow) get the reference to SESSION and<br>
> PROCESS_INSTANCE<br>
> ids, how do I know which work item is ready to be completed?<br>
><br>
> Thank you,<br>
> /Anatoly<br>
> --<br>
> View this message in context:<br>
><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>
> 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>
><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 "Salaboy" Mauricio -<br>