예제 #1
0
        //TODO : Get rid of this constructor once the dependent constructor is deleted.
        private WorkflowHistoryEvents(IEnumerable <HistoryEvent> allHistoryEvents, long previousStartedEventId,
                                      long newStartedEventId, string workflowRunId)
        {
            var decision = new DecisionTask()
            {
                PreviousStartedEventId = previousStartedEventId, StartedEventId = newStartedEventId, WorkflowExecution =
                    new WorkflowExecution()
                {
                    RunId = workflowRunId
                }
            };

            decision.Events    = allHistoryEvents.ToList();
            decision.TaskToken = "dummy";
            _workflowTask      = WorkflowTask.Create(decision);
        }
예제 #2
0
 /// <summary>
 /// Append events of <para>other</para> WorkflowTask.
 /// </summary>
 /// <param name="other"></param>
 public void Append(WorkflowTask other)
 {
     Ensure.NotNull(other, nameof(other));
     _decisionTask.Events.AddRange(other._decisionTask.Events);
 }
예제 #3
0
 public WorkflowHistoryEvents(WorkflowTask workflowTask)
 {
     _workflowTask = workflowTask;
 }