Get workItem ID's of all queued waiting activities
I've a use case where we need to cancel all the queued activities after the current activity processing is completed. We have interaction manager method CancelActivity which accepts WorkItemID as input parameter which works fine cancelling the current activity.
Is there any way we can get all the WorkItem ID's which are waiting in the queue and cancel them after the current activity process completion i.e. on event ActivityCompleted.
As a work around I'm currently cancelling the next 3 activities incrementing the workItemID of current running activity. But eventually there could be less/more than 3 activities in the queue.
Appreciate your suggestions/comments.
Keep up to date on this post and subscribe to comments