Examples of addWorkItem()


Examples of org.uengine.webservices.worklist.WorkList.addWorkItem()

    if(tID!=null && (tID.equals("null") || tID.trim().length()==0)){
      tID = null;
    }
   
    if(tID==null){
      tID = worklist.addWorkItem(roleMapping != null ? roleMapping.getEndpoint() : null, parameters, instance.getProcessTransactionContext());
    }else if(Activity.STATUS_SUSPENDED.equals(getStatus(instance))){//if suspended
      ResultPayload rp = new ResultPayload();
      rp.setExtendedValue(new KeyedParameter(KeyedParameter.DEFAULT_STATUS, DefaultWorkList.WORKITEM_STATUS_CONFIRMED)); //or WORKITEM_STATUS_RESUMED
     
      instance.getWorkList().updateWorkItem(taskIds[0], null, rp.getExtendedValues(), instance.getProcessTransactionContext());
View Full Code Here

Examples of org.uengine.webservices.worklist.WorkList.addWorkItem()

      ResultPayload rp = new ResultPayload();
      rp.setExtendedValue(new KeyedParameter(KeyedParameter.DEFAULT_STATUS, DefaultWorkList.WORKITEM_STATUS_CONFIRMED)); //or WORKITEM_STATUS_RESUMED
     
      instance.getWorkList().updateWorkItem(taskIds[0], null, rp.getExtendedValues(), instance.getProcessTransactionContext());
    }else //if reserved
      worklist.addWorkItem(tID, roleMapping != null ? roleMapping.getEndpoint() : null, parameters, instance.getProcessTransactionContext());
     
    taskIds2[i++] = tID;
//    }while(roleMapping.next());
   
    setTaskIds(instance, taskIds2);   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.