yes. the workItemId is always persisted in the data base..<br><br><br><div class="gmail_quote">On Fri, Mar 26, 2010 at 9:32 PM, 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>
Kris, Salaboy,<br>
<br>
    I am just looking for the best approach to establish a relationship<br>
between the business &quot;Activity&quot; and the Drools Flow &quot;Workitem&quot;.<br>
<br>
    So according to Kris (thank you), WorkItemHandler would have a reference<br>
to a WorkItemId that can be persisted before the workflow gets suspended<br>
[goes to the &quot;wait state&quot;].<br>
<br>
    So let me try to ask my question again: &quot;businessService is passing a<br>
documentId to the workflowService.resumeWorkflow( documentId )...&quot;, can the<br>
workItemID be persisted using a Variable Persistence, so when the flow<br>
resumes, I can just do processInstance.getVariable( &quot;workItemId&quot; ) [or<br>
whatever the API to get variable is]?<br>
<br>
     If NOT, is there a place within the Drools Flow tables, I can persist<br>
this WorkItemID [besides the VariableInstanceInfo]?<br>
<br>
Thank you,<br>
/Anatoly<br>
<br>
P.S. These are two questions<br>
--<br>
View this message in context: <a href="http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p677804.html" target="_blank">http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p677804.html</a><br>

<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>