示例#1
0
        protected Task <IStep> OnSuccess(Execution execution)
        {
            var nextStep = _executionRepository.GetNextStepWithType(execution.CurrentStepId, execution.CurrentSectionId, execution.ProcessId, StepType.OnSuccess);

            //GetNextSectionAndStep

            execution.CurrentPageId    = nextStep.PageId;
            execution.CurrentSectionId = nextStep.SectionId;
            execution.CurrentStepId    = nextStep.Id;

            string[] steps = nextStep.NameClientAlias.Split(Convert.ToChar("|"));
            _stepOnSuccess = _steps.FirstOrDefault(s => s.Name == steps[0]);

            //save Request
            _executionRepository.Update(execution);
            _executionRepository.UnitOfWork.Commit();

            return(Task.FromResult(_stepOnSuccess));
        }
 public StepDetail GetNextStepWithType(int step, int section, int processId, int type)
 {
     return(_executionRepository.GetNextStepWithType(step, section, processId, type));
 }