public void Execute(Workflow workflow, Transition transition, string user, JToken operationData, params string[] parameters) { Console.WriteLine ("WF: " + workflow.Id); Console.WriteLine ("TR to: " + transition.StateName); foreach (var p in parameters) { Console.WriteLine (p); } }
public void Execute(Workflow workflow, Transition transition, string user, JToken operationData, params string[] parameters) { if (operationData != null && operationData ["comment"] != null) { Console.WriteLine (String.Format ( "User {0} commented '{1}' while transitioning from {2} to {3}", user, operationData ["comment"].Value<String> (), workflow.CurrentState, transition.StateName)); } }
protected Object GetWorkflowParameter(Workflow workflow, String parameter) { throw new NotImplementedException(); }
public abstract bool IsMetByWorkflow(Workflow workflow, params string[] parameters);
public bool IsMetByWorkflow(Workflow workflow, params string[] parameters) { throw new NotImplementedException (); }
public bool IsValid(Workflow workflow, Transition transition, params string[] parameters) { return GetValidationErrors(workflow, transition, parameters).Count == 0; }
public abstract List<ValidationError> GetValidationErrors(Workflow workflow, Transition transition, params string[] parameters);