public WfProcess(Proinst proins) : base(proins) { this.proinst = proins; this.requester = WfFactory.GetWfRequester(proins.Requester); }
public IWfProcess CreateProcess(IWfRequester requester) { if (LoggingService.IsInfoEnabled) { LoggingService.Info("WfManager will CreateProcess"); } if (this.state == ProcessMgrStateType.Disabled) { throw new ProcessMgrNotEnableException(); } if (requester == null) { throw new RequesterRequiredException(); } IWfProcess wfProcess = WfFactory.GetWfProcess(this.prodef, this); try { wfProcess.Requester = requester; } catch (CannotChangeRequesterException exception) { throw new WfException(exception.Message, exception); } this.processList.Add(wfProcess); if (LoggingService.IsInfoEnabled) { LoggingService.Info("[WfProcessMgr.CreateProcess]:Process create"); } return wfProcess; }