Question

6
Replies
70
Views
RohitPrakashC5206 Member since 2017 2 posts
Anthem
Posted: 11 months ago
Last activity: 10 months 3 weeks ago

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
Share this page LinkedIn