//public WorkflowResults CreateAbortedWorkflowResults(WorkflowEventArgs args) //{ // WorkflowResults results = new WorkflowResults(args); // results.Status = WorkflowStatus.Aborted; // return results; //} public static WorkflowResults CreateRunningWorkflowResults(WorkflowEventArgs args) { WorkflowResults results = new WorkflowResults(args); results.Status = WorkflowStatus.Running; return(results); }
public static WorkflowResults CreateCompletedWorkflowResults(WorkflowCompletedEventArgs args) { WorkflowResults results = new WorkflowResults(args); results.Status = WorkflowStatus.Completed; return(results); }
public static WorkflowResults CreateTerminatedWorkflowResults(WorkflowTerminatedEventArgs args) { WorkflowResults results = new WorkflowResults(args); results.Status = WorkflowStatus.Terminated; return(results); }
public static WorkflowResults RunWorkflow(Type workflowType, Dictionary <string, object> workflowParameters) { //Check.ArgumentIsNotNull(workflowType, "workflowType"); InitilizeRuntime(); WorkflowInstance Instance; WorkflowResults Results = new WorkflowResults(); try { Instance = Runtime.CreateWorkflow(workflowType, workflowParameters); Results.InstanceId = Instance.InstanceId; Instance.Start(); } catch (Exception ex) { Results.Exception = ex; } return(Results); }
public static WorkflowResults RunWorkflow(Type workflowType, Dictionary<string, object> workflowParameters) { //Check.ArgumentIsNotNull(workflowType, "workflowType"); InitilizeRuntime(); WorkflowInstance Instance; WorkflowResults Results = new WorkflowResults(); try { Instance = Runtime.CreateWorkflow(workflowType, workflowParameters); Results.InstanceId = Instance.InstanceId; Instance.Start(); } catch (Exception ex) { Results.Exception = ex; } return Results; }
public static WorkflowResults CreateTerminatedWorkflowResults(WorkflowTerminatedEventArgs args) { WorkflowResults results = new WorkflowResults(args); results.Status = WorkflowStatus.Terminated; return results; }
//public WorkflowResults CreateAbortedWorkflowResults(WorkflowEventArgs args) //{ // WorkflowResults results = new WorkflowResults(args); // results.Status = WorkflowStatus.Aborted; // return results; //} public static WorkflowResults CreateRunningWorkflowResults(WorkflowEventArgs args) { WorkflowResults results = new WorkflowResults(args); results.Status = WorkflowStatus.Running; return results; }
public static WorkflowResults CreateCompletedWorkflowResults(WorkflowCompletedEventArgs args) { WorkflowResults results = new WorkflowResults(args); results.Status= WorkflowStatus.Completed; return results; }
void Runtime_WorkflowIdled(object sender, WorkflowEventArgs e) { CurrentResultsInContext = WorkflowResults.CreateRunningWorkflowResults(e); }
void Runtime_WorkflowCompleted(object sender, WorkflowCompletedEventArgs e) { CurrentResultsInContext = WorkflowResults.CreateCompletedWorkflowResults(e); }