Exemplo n.º 1
0
        public static bool RunByName(OrderTaskContext c, WorkflowNames name)
        {
            var result = false;
            var wf     = c.HccApp.WorkflowFactory.CreateWorkflow(name);

            result = wf.Run(c);
            return(result);
        }
Exemplo n.º 2
0
        protected void AddExceptionNote(OrderTaskContext context, Exception ex, string errorMessage)
        {
            context.Errors.Add(new WorkflowMessage(errorMessage, ex.Message + ex.StackTrace, false));
            var note = new OrderNote
            {
                IsPublic = false,
                Note     = string.Concat("EXCEPTION: ", ex.Message, " | ", ex.StackTrace)
            };

            context.Order.Notes.Add(note);
        }
Exemplo n.º 3
0
 public virtual string StepName(OrderTaskContext context)
 {
     return(StepName());
 }
Exemplo n.º 4
0
 public abstract bool Rollback(OrderTaskContext context);
Exemplo n.º 5
0
 public abstract bool Execute(OrderTaskContext context);
Exemplo n.º 6
0
 public virtual string TaskName(OrderTaskContext context)
 {
     return(TaskName());
 }