Package org.uengine.kernel

Examples of org.uengine.kernel.ProcessVariableValue.beforeFirst()


        if(variable == null) throw new UEngineException("Undeclared process variable reference : " + varKey);
       
        ProcessVariableValue theValue = definition.getProcessVariable(varKey).getMultiple(instance, scope);
       
        //ProcessVariableValue theValue = instance.getMultiple(scope, varKey);
        theValue.beforeFirst();
        if(theValue.size()==1)
          return theValue.getValue();
        else
          return theValue;
      }else{
View Full Code Here


            innerPvv.setValue(value);
            innerPvv.moveToAdd();
            value=null;
          }
        }
        innerPvv.beforeFirst();
        if(innerPvv!=null && innerPvv.getValue() !=null){
          pvv.setValue(innerPvv);
          pvv.moveToAdd();
          innerPvv=null;
        }
View Full Code Here

            "Undeclared process variable reference : " + key);

      ProcessVariableValue theValue = pdRemote.getProcessVariable(key)
          .getMultiple(piRemote, "");

      theValue.beforeFirst();
      if (theValue.size() == 1)
        retObj = theValue.getValue();
      else
        retObj = theValue;
    }
View Full Code Here

      Serializable value = getDeserializedValue(processVariable, key, TYPE_AUTODETECT);
      pvv.setValue(value);
      pvv.moveToAdd();
    }

    pvv.beforeFirst();
   
    return pvv;
  }
 
 
View Full Code Here

    ProcessVariableValue pvv = new ProcessVariableValue();
    do{
      pvv.setValue((Serializable)dao.get(getFieldName()));
      pvv.moveToAdd();
    }while(dao.next());
        pvv.beforeFirst();

        return pvv;
  }
 
  public boolean set(ProcessInstance instance, String scope, Serializable value) throws Exception {
View Full Code Here

        ProcessVariableValue pvv = new ProcessVariableValue();
        for (String value : values) {
          pvv.setValue(value);
          pvv.moveToAdd();
        }
        pvv.beforeFirst();
        val = pvv;
      }
     
      instance.set("", pv.getName(), val);
    }
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.