示例#1
0
 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);
     }
 }
示例#2
0
 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));
     }
 }
示例#3
0
 public bool IsValid(Workflow workflow, Transition transition, params string[] parameters)
 {
     return GetValidationErrors(workflow, transition, parameters).Count == 0;
 }
示例#4
0
 public abstract List<ValidationError> GetValidationErrors(Workflow workflow, Transition transition, params string[] parameters);