Package org.uengine.kernel

Examples of org.uengine.kernel.KeyedParameter


    if(!(instance instanceof DefaultProcessInstance) && (taskIds==null || taskIds.length<1)) throw new UEngineException("The first human work didn't start properly.");
 
    //TODO: kind of wierd code
    if(resultPayload!=null && taskIds!=null)
    resultPayload.setExtendedValue(
        new KeyedParameter(HumanActivity.PAYLOADKEY_TASKID, taskIds[0])
    );     
    //

    definition.fireMessage(message, instance, resultPayload);
  }
View Full Code Here


     
          ParameterContext[] pcs = humanActivity.getParameters();
          KeyedParameter[] kps = new KeyedParameter[pcs.length];
          for(int i=0; i<pcs.length; i++){
            String pvName = pcs[i].getVariable().getName();
            kps[i] = new KeyedParameter();
            kps[i].setKey(pvName);
           
//System.out.println("HumanActivitySimulator:: result = " +  result);
            kps[i].setValue(result.getFieldValueObject(pvName));
          }     
View Full Code Here

      // ����-�������� öȸó��,öȸ���,�ݼ���� �� ����ϱ� ���� �߰���.
      // WorkItemHandlerJugmSubmitBase before()�� �ű�.
      //isChangeStaus = "yes".equals(request.getParameter("isChangeStaus"));
     
      resultPayload = new ResultPayload();
      resultPayload.setExtendedValues(new KeyedParameter[]{new KeyedParameter("TASKID", taskId)});
     
      if(initiate){//The case that this workitem handler should initiate the process
      if(instanceId!=null && (instanceId.trim().equals("null") || instanceId.trim().length()==0))
        instanceId = null;
      instanceId = pm.initializeProcess(processDefinition, instanceId);
View Full Code Here

    try{
     
      WorkListDAO wl = (WorkListDAO) tc.findSynchronizedDAO("BPM_WORKLIST", "taskId", new Long(taskID), WorkListDAO.class);
      wl.setStatus(DefaultWorkList.WORKITEM_STATUS_CANCELLED);
      for(int i=0; i<options.length; i++){
        KeyedParameter parameter = options[i];
        if("status".equals(parameter.getKey()) && UEngineUtil.isNotEmpty((String)parameter.getValue())){
          wl.setStatus(((String)parameter.getValue()).toUpperCase());
        }
      }
     
     
    }catch(Exception e){
View Full Code Here

      if(userId!=null)
        wlDAO.setEndpoint(userId);
     
      for(int i=0; i<parameters.length; i++){
        KeyedParameter parameter = parameters[i];
       
        if(KeyedParameter.DISPATCHINGOPTION.equals(parameter.getKey())){
          wlDAO.setDispatchOption(Integer.parseInt(""+parameter.getValue()));
        }else
        if("dispatchParam1".equals(parameter.getKey())){
          wlDAO.setDispatchParam1(""+parameter.getValue());
        }else
                if(KeyedParameter.DUEDATE.equals(parameter.getKey())){
          wlDAO.setDueDate((Date)parameter.getValue());
                }else
                if(KeyedParameter.DEFAULT_STATUS.equals(parameter.getKey())){
          wlDAO.setStatus((String)parameter.getValue());
                }else
                if("endDate".equals(parameter.getKey())){
            wlDAO.setEndDate((Date)parameter.getValue());
                }else
                if("saveDate".equals(parameter.getKey())){ //임시저장 시간 저장 (11.23)
              wlDAO.setSaveDate((Date)parameter.getValue());
                }
      }
     
      //wlDAO.update();   
     
View Full Code Here

TOP

Related Classes of org.uengine.kernel.KeyedParameter

Copyright © 2018 www.massapicom. 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.