Remove specific activity instance bookmarks

The change clears specific activity instance bookmarks in the context from the WorkflowExecutionContext. This is an extra step in the process of clearing bookmarks, which assists in managing and cleaning up workflow state effectively.
This commit is contained in:
Sipke Schoorstra 2023-12-18 21:39:30 +01:00
parent 76bf3f8e30
commit 20cf5ade2d

View file

@ -504,6 +504,7 @@ public static class ActivityExecutionContextExtensions
// Clear bookmarks.
context.ClearBookmarks();
context.WorkflowExecutionContext.Bookmarks.RemoveWhere(x => x.ActivityInstanceId == context.Id);
// Remove completion callbacks.
context.ClearCompletionCallbacks();