Yes it&#39;s there:<br><br>public interface WorkItem {<br><br>    int PENDING   = 0;<br>    int ACTIVE    = 1;<br>    int COMPLETED = 2;<br>    int ABORTED   = 3;<br><br>depending on your work item handler implementation you will set the state as you wish.. notice that you can add more states if you need a complex life cycle. That means that it&#39;s not fixed to one single state when it&#39;s active. You can implement multiple phases of execution.<br>
<br><br><div class="gmail_quote">On Fri, Apr 2, 2010 at 7:24 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>
not sure where you are going with this, but ok:<br>
<br>
    public interface ProcessInstance extends  EventListener {<br>
<br>
        int STATE_PENDING   = 0;<br>
        int STATE_ACTIVE    = 1;<br>
        int STATE_COMPLETED = 2;<br>
        int STATE_ABORTED   = 3;<br>
        int STATE_SUSPENDED = 4;        //  &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br>
<br>
        //....<br>
    }<br>
<br>
So does WorkItem:<br>
<br>
    public class WorkItemImpl implements WorkItem, Serializable {<br>
<br>
        private static final long serialVersionUID = 400L;<br>
<br>
        private long id;<br>
        private String name;<br>
<br>
        private int state = 0;             //  &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br>
<br>
        private Map&lt;String, Object&gt; parameters = new HashMap&lt;String,<br>
Object&gt;();<br>
        private Map&lt;String, Object&gt; results = new HashMap&lt;String, Object&gt;();<br>
        private long processInstanceId;<br>
<br>
        // ....<br>
     }<br>
<br>
And yes, it is framework concern from both angles.<br>
<br>
/Anatoly<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p694087.html" target="_blank">http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p694087.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>