示例#1
0
        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);
        }
示例#2
0
 public RestartWorkflowDecision(RestartWorkflowAction restartWorkflowAction)
 {
     _restartWorkflowAction = restartWorkflowAction;
     Priority = Medium;
 }