I am developing a SharePoint workflow with Replicator activity to replicate user activity for each approver. User activity implements the approval branch for a specific user. It has a classic form with the functions CreateTask, While, OnTaskChanged and CompleteTask.
I set UntilCondition on the replicator to cancel execution after one of the approvers decides to reject the statement and then completes the workflow. The problem arises with other unfinished tasks that โfreezeโ in their current state. The user does not see this state when opening a task.
I placed UpdateAllTasks after the placeholder replaced the task status with Canceled. But since there are no event actions between CompleteTask (for the rejected task) and UpdateAllTasks, the UpdateAllTask โโaction is also canceled for the rejected task.
The question is, what can I do to clear the pending changes made by CompleteTask to UpdateAllTasks?
Or maybe there is another way to implement such a workflow. I was thinking about how to implement a cancel handler for user activity using UpdateTask. But I donโt know how to implement it and tell the cancellation handler that it is executed in case of a rejection.
Dmitry Martynov
source
share