Package org.uengine.kernel

Examples of org.uengine.kernel.DefaultProcessInstance$IndexedProcessVariableMap


 
  public String viewProcessDefinitionFlowChart(String processDefinition, Map options) throws RemoteException{
    log("viewProcessDefinitionFlowChart", new Object[]{processDefinition, options});
    try{
      ProcessDefinition definition = getDefinition(processDefinition);
      ProcessInstance instance = new DefaultProcessInstance();
      instance.setProcessTransactionContext(getTransactionContext());
      ActivityViewer processDefinitionViewer = DefaultActivityViewer.createViewer(definition);
      return processDefinitionViewer.render(definition, instance, options).toString();
      //return ProcessDefinitionViewer.getInstance().render(getDefinition(processDefinition), null, options).toString();
    }catch(Exception e){
      e.printStackTrace();
View Full Code Here


  public DefaultProcessInstance getAllVariablesAsDefaultProcessInstance(String instanceId) throws Exception{
    ProcessVariableDAO processVariable = createDAOImpl(getAllValue_SQL);
    processVariable.setInstId(new Long(instanceId));
    processVariable.select();
   
    DefaultProcessInstance defaultProcessInstance = new DefaultProcessInstance();
   
    while (processVariable.next()) {
      Serializable value = getDeserializedValue(processVariable);
      String scope = processVariable.getTrcTag();

      if(scope==null) scope = "";
     
      String key = processVariable.getKeyName();
      boolean isProperty = processVariable.getIsProperty().booleanValue();
     
      //if ( value != null ){
        if(isProperty){
          defaultProcessInstance.setProperty(scope, key, value);
        }else if(processVariable.getVarIndex().intValue() > 0)
          defaultProcessInstance.add(scope, key, value, processVariable.getVarIndex().intValue());
        else
          defaultProcessInstance.set(scope, key, value);
      //}
    }
   
    return defaultProcessInstance;
 
View Full Code Here

    final ProcessDefinition definition = (ProcessDefinition) GlobalContext.deserialize(
        inputStream, ProcessDefinition.class);
   
    final HashMap statusCode = options.getStatusCode();
   
    ProcessInstance instance = new DefaultProcessInstance(){

      public String getStatus(String scope) throws Exception {
        Activity act =  definition.getActivity(scope);
       
        if(act instanceof ProcessDefinition) return Activity.STATUS_RUNNING;
View Full Code Here

TOP

Related Classes of org.uengine.kernel.DefaultProcessInstance$IndexedProcessVariableMap

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.