Пример #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
 protected Object GetWorkflowParameter(Workflow workflow, String parameter)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public abstract bool IsMetByWorkflow(Workflow workflow, params string[] parameters);
Пример #5
0
 public bool IsMetByWorkflow(Workflow workflow, params string[] parameters)
 {
     throw new NotImplementedException ();
 }
Пример #6
0
 public bool IsValid(Workflow workflow, Transition transition, params string[] parameters)
 {
     return GetValidationErrors(workflow, transition, parameters).Count == 0;
 }
Пример #7
0
 public abstract List<ValidationError> GetValidationErrors(Workflow workflow, Transition transition, params string[] parameters);