Package org.uengine.processmanager

Examples of org.uengine.processmanager.SimulatorTransactionContext


      }
    }
  }

  public ProcessTransactionContext getProcessTransactionContext() {
    return new SimulatorTransactionContext();
  }
View Full Code Here


   
    //(ProcessDefinition) GlobalContext.deserialize(new FileInputStream(""), ProcessDefinition.class);
   
    ProcessInstance instance = new DefaultProcessInstance();
    instance.setProcessDefinition(process);
    instance.setProcessTransactionContext(new SimulatorTransactionContext());
    instance.execute();
  }
View Full Code Here

    if ( getProcessTransactionContext() == null){
      if(options != null && options.get("ptc") != null ) {
        setProcessTransactionContext( (ProcessTransactionContext)options.get("ptc") );
      }else
        if(!GlobalContext.isDesignTime())
          setProcessTransactionContext(new SimulatorTransactionContext());
    }

    if(instanceId==null){
      instanceId = "Volatile_"+(instanceCount++);
    }
View Full Code Here

    proc.setProcessVariables(new ProcessVariable[]{
      ProcessVariable.forName("testvar")
    });
   
    ProcessInstance inst = new DefaultProcessInstance();
    inst.setProcessTransactionContext(new SimulatorTransactionContext());
    inst.setProcessDefinition(proc);
    inst.set("testvar", new Date(9));
   
    Evaluate cond = new Evaluate("testvar", "<", new Date(10));
    cond.isMet(inst, "");
View Full Code Here

TOP

Related Classes of org.uengine.processmanager.SimulatorTransactionContext

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.