From fbe3bf9311abb28731d8cfb2da2026a4dd0cc778 Mon Sep 17 00:00:00 2001 From: Jonathan Ruckert Date: Wed, 18 Sep 2019 15:45:02 +0930 Subject: [PATCH] Updated Halt task to resume on first pass if set (#69) When continue on first pass is set, the workflow should resume instead of execute the halt task again. --- src/core/Elsa.Core/Results/HaltResult.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Elsa.Core/Results/HaltResult.cs b/src/core/Elsa.Core/Results/HaltResult.cs index af5756052..db8512cd1 100644 --- a/src/core/Elsa.Core/Results/HaltResult.cs +++ b/src/core/Elsa.Core/Results/HaltResult.cs @@ -25,7 +25,7 @@ namespace Elsa.Results if (workflowContext.IsFirstPass && ContinueOnFirstPass) { var activityInvoker = workflowContext.ServiceProvider.GetRequiredService(); - var result = await activityInvoker.ExecuteAsync(workflowContext, activity, cancellationToken); + var result = await activityInvoker.ResumeAsync(workflowContext, activity, cancellationToken); workflowContext.IsFirstPass = false;