예제 #1
0
 internal ProcessEngine(ProcessInstanceCacheFactory runtimeContext, SysProcess process)
 {
     this._context        = runtimeContext.Context;
     this._process        = process;
     this._piCacheFactory = runtimeContext;
     this._manager        = this._piCacheFactory.Manager;
     this._pi             = null;
 }
예제 #2
0
 internal ProcessEngine(ProcessInstanceCacheFactory runtimeContext, SysProcessInstance processInstance)
 {
     if (processInstance.Process == null)
     {
         processInstance.Process = runtimeContext.PCacheFactory.GetProcessCache(processInstance.ProcessId.Value);
     }
     this._context        = runtimeContext.Context;
     this._process        = processInstance.Process;
     this._piCacheFactory = runtimeContext;
     this._manager        = this._piCacheFactory.Manager;
     this._pi             = processInstance;
 }