private void ExecuteStep(ActionStepBase step) { if (!_processContext.IsRollbackExecuted) { _processTraceHandler.StepStart(step.StepName); try { step.Execute(_processContext); } catch (NotificationProcessException ex) { _processTraceHandler.StepError(ex.ErrorCode, ex.Message, ex.InstructionsMessage, ex.NotificationErrorType); } catch (Exception ex) { _processTraceHandler.StepError(step.StepName, ex.ToString(), ex.Message, NotificationErrorType.Error); } _processTraceHandler.StepEnd(); } }
protected void AddStep(ActionStepBase step) { _processSteps.Add(step); }
protected ProcessDefinition(ActionStepBase rollbackStep) { _processSteps = new List <ActionStepBase>(); RollbackStep = rollbackStep; }