internal static RestartWorkflowAction RestartWorkflow(IWorkflowHistoryEvents workflowHistoryEvents) { var workflowStartedEvent = workflowHistoryEvents.WorkflowStartedEvent(); var restartWorkflowAction = new RestartWorkflowAction() { Input = workflowStartedEvent.Input, TaskList = workflowStartedEvent.TaskList, ExecutionStartToCloseTimeout = workflowStartedEvent.ExecutionStartToCloseTimeout, TaskPriority = workflowStartedEvent.TaskPriority, TaskStartToCloseTimeout = workflowStartedEvent.TaskStartToCloseTimeout, ChildPolicy = workflowStartedEvent.ChildPolicy, }; workflowStartedEvent.TagList.ToList().ForEach(tag => restartWorkflowAction.AddTag(tag)); return(restartWorkflowAction); }
public RestartWorkflowDecision(RestartWorkflowAction restartWorkflowAction) { _restartWorkflowAction = restartWorkflowAction; Priority = Medium; }