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.
This commit is contained in:
Jonathan Ruckert 2019-09-18 15:45:02 +09:30 committed by Sipke Schoorstra
parent 130fee2bd8
commit fbe3bf9311

View file

@ -25,7 +25,7 @@ namespace Elsa.Results
if (workflowContext.IsFirstPass && ContinueOnFirstPass)
{
var activityInvoker = workflowContext.ServiceProvider.GetRequiredService<IActivityInvoker>();
var result = await activityInvoker.ExecuteAsync(workflowContext, activity, cancellationToken);
var result = await activityInvoker.ResumeAsync(workflowContext, activity, cancellationToken);
workflowContext.IsFirstPass = false;