Fix workflow execution context flag after activity execution

Previously, the `WorkflowExecutionContext.IsExecuting` flag was incorrectly set to `true` after an activity executed, causing potential logic inconsistencies. This change ensures the flag is correctly set to `false`, maintaining the expected workflow state.
This commit is contained in:
Sipke Schoorstra 2025-02-22 20:50:36 +01:00
parent dd92fa097c
commit 83744f1f17
No known key found for this signature in database
GPG key ID: 5C10502B28A4268F

View file

@ -90,7 +90,7 @@ public class DefaultActivityInvokerMiddleware(ActivityMiddlewareDelegate next, I
// Mark activity as executed.
context.IsExecuting = false;
context.WorkflowExecutionContext.IsExecuting = true;
context.WorkflowExecutionContext.IsExecuting = false;
// Conditionally commit the workflow state.
if (ShouldCommit(context, ActivityLifetimeEvent.ActivityExecuted))