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:
parent
130fee2bd8
commit
fbe3bf9311
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue