예제 #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);