Question

6
Replies
85
Views
Close popover
Rohit Prakash Chintala (RohitPrakashC5206)
Anthem

Anthem
US
RohitPrakashC5206 Member since 2017 2 posts
Anthem
Posted: November 15, 2019
Last activity: November 25, 2019
Closed

Get workItem ID's of all queued waiting activities

Hi All.

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.

Thanks,

Rohit

Robotic Process Automation
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.