internal ProcessEngine(ProcessInstanceCacheFactory runtimeContext, SysProcess process) { this._context = runtimeContext.Context; this._process = process; this._piCacheFactory = runtimeContext; this._manager = this._piCacheFactory.Manager; this._pi = null; }
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; }