[rules-users] Resuming the Flow: SESSION_ID, PROCESS_INSTANCE_ID, WORKITEM_ID

tolitius webakaunt at gmail.com
Fri Apr 2 19:24:53 EDT 2010


not sure where you are going with this, but ok:

    public interface ProcessInstance extends  EventListener {

        int STATE_PENDING   = 0;
        int STATE_ACTIVE    = 1;
        int STATE_COMPLETED = 2;
        int STATE_ABORTED   = 3;
        int STATE_SUSPENDED = 4;        //  <<<<<<<<<<< 

        //....
    }

So does WorkItem:

    public class WorkItemImpl implements WorkItem, Serializable {
 
        private static final long serialVersionUID = 400L;
    
        private long id;
        private String name;
    
        private int state = 0;             //  <<<<<<<<<<<<<<<<<<<<<<<<<<
        
        private Map<String, Object> parameters = new HashMap<String,
Object>();
        private Map<String, Object> results = new HashMap<String, Object>();
        private long processInstanceId;
     
        // ....
     }

And yes, it is framework concern from both angles.

/Anatoly
-- 
View this message in context: http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p694087.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list