Fix workflow context loading when context has changed
This commit is contained in:
parent
0ee07636c3
commit
8572f1e6d7
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue