コード例 #1
0
ファイル: WfProcess.cs プロジェクト: vanloc0301/mychongchong
 public WfProcess(Proinst proins)
     : base(proins)
 {
     this.proinst = proins;
     this.requester = WfFactory.GetWfRequester(proins.Requester);
 }
コード例 #2
0
 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;
 }