I do not recommend that approach, I recommend to copy the same approach used in the WSHT human task module. there is no need to clarify that Human Task are only one of the possibilities for a wait state situation. But, WSHT contains a good approach to achieve the same that you are looking for.. you can copy that.. at the end the WSHT module is jut a Work Item with steroids. <br>
<br><div class="gmail_quote">On Tue, Mar 30, 2010 at 7:31 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>
Long running process is not always a Human Task, that means the Task is not<br>
always needed. Let&#39;s say we are waiting for the response from the external<br>
system, and once response comes in, we would like to complete _this_ work<br>
item.<br>
<br>
Therefore we are looking to do this _without_ WS HT handler, and use<br>
Variable Persistence mechanism instead, so we can load the process, and do<br>
&quot;processInstance.getVariable(&quot;workItemId&quot;)&quot;.<br>
<br>
What would be the best approach to do that?<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/Drools-Flow-WORK-ITEM-ID-as-a-flow-variable-tp680939p687176.html" target="_blank">http://n3.nabble.com/Drools-Flow-WORK-ITEM-ID-as-a-flow-variable-tp680939p687176.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>