Пример #1
0
        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();
            }
        }
Пример #2
0
 protected void AddStep(ActionStepBase step)
 {
     _processSteps.Add(step);
 }
Пример #3
0
        protected ProcessDefinition(ActionStepBase rollbackStep)
        {
            _processSteps = new List <ActionStepBase>();

            RollbackStep = rollbackStep;
        }