diff --git a/src/modules/Elsa.Workflows.Core/Contexts/WorkflowExecutionContext.cs b/src/modules/Elsa.Workflows.Core/Contexts/WorkflowExecutionContext.cs index 9c7ed3910..d2d561213 100644 --- a/src/modules/Elsa.Workflows.Core/Contexts/WorkflowExecutionContext.cs +++ b/src/modules/Elsa.Workflows.Core/Contexts/WorkflowExecutionContext.cs @@ -513,8 +513,7 @@ public partial class WorkflowExecutionContext : IExecutionContext { if (!ValidateStatusTransition()) throw new($"Cannot transition from {SubStatus} to {subStatus}"); - - PreviousSubStatus = SubStatus; + SubStatus = subStatus; UpdatedAt = SystemClock.UtcNow;