public void Start(int workflowInstanceId) { var workflowInstance = TheWorkflowInstanceRepository.GetById(workflowInstanceId); var hydratedInstance = TheWorkflowInstanceRepository.RestoreState(workflowInstance); TheWorkflowRuntime.Start(hydratedInstance); }
public IWorkflowInstance GetInstance(int workflowInstanceId) { var workflowInstance = TheWorkflowInstanceRepository.GetById(workflowInstanceId); var hyrdatedWorkflowInstance = TheWorkflowInstanceRepository.RestoreState(workflowInstance); return(hyrdatedWorkflowInstance); }
public void DeleteWorkflowInstance(int workflowInstanceId) { var workflowInstance = TheWorkflowInstanceRepository.GetById(workflowInstanceId); TheWorkflowInstanceRepository.Delete(workflowInstance); }