Beispiel #1
0
        private void RaisePostExecutionEvents(IEnumerable <WorkflowDecision> workflowDecisions, Workflow workflow)
        {
            var postExecutionEvents      = new PostExecutionEvents(workflow, _decisionTask.WorkflowExecution.WorkflowId, _decisionTask.WorkflowExecution.RunId);
            var workflowClosingDecisions = workflowDecisions.OfType <WorkflowClosingDecision>().ToList();

            workflowClosingDecisions.ForEach(d => d.Raise(postExecutionEvents));
        }
Beispiel #2
0
 internal override void Raise(PostExecutionEvents postExecutionEvents)
 {
     postExecutionEvents.Completed(_result);
 }
Beispiel #3
0
 internal override void Raise(PostExecutionEvents postExecutionEvents)
 {
     postExecutionEvents.Restarted();
 }
 internal override void Raise(PostExecutionEvents postExecutionEvents)
 {
     postExecutionEvents.Cancelled(_details);
 }
 internal override void Raise(PostExecutionEvents postExecutionEvents)
 {
     postExecutionEvents.Failed(_reason, _details);
 }