Fix workflow context loading when context has changed

This commit is contained in:
Sipke Schoorstra 2020-12-04 12:12:12 +01:00
parent 0ee07636c3
commit 8572f1e6d7

View file

@ -273,7 +273,7 @@ namespace Elsa.Services
if (workflowBlueprint.ContextOptions?.ContextFidelity == WorkflowContextFidelity.Activity || activityBlueprint.LoadWorkflowContext || workflowExecutionContext.ContextHasChanged)
{
workflowExecutionContext.WorkflowContext = await LoadWorkflowContextAsync(workflowExecutionContext, WorkflowContextFidelity.Activity, activityBlueprint.LoadWorkflowContext, cancellationToken);
workflowExecutionContext.WorkflowContext = await LoadWorkflowContextAsync(workflowExecutionContext, WorkflowContextFidelity.Activity, activityBlueprint.LoadWorkflowContext || workflowExecutionContext.ContextHasChanged, cancellationToken);
workflowExecutionContext.ContextHasChanged = false;
}