Example #1
0
 private void AddStep(WorkflowStep step)
 {
     _steps.Add(step);
     step.OnStartStep += (s, e) => OnReport(s, e);
     step.OnEndStep += (s, e) => OnReport(s, e);
     step.OnErrorStep += (s, e) => OnError(s, e);
 }
Example #2
0
        public static Workflow Do(WorkflowStep step)
        {
            var result = new Workflow();
            result.AddStep(step);

            return result;
        }
Example #3
0
        public Workflow Then(WorkflowStep step)
        {
            AddStep(step);

            return this;
        }