Question
3
Replies
3331
Views
Larsen and Toubro Infotech Ltd.
Posted: December 20, 2017
Last activity: December 20, 2017
Are there any OOTB methods to re-queue the items in broken queue ?
Hi,
We can re-queue the item which is in broken queue manually. instead of re-queuing manually can we do the same programmatically through any OOTB ?
Thanks,
Srinivas
Hi Srinivas,
Ideally, we should not do requeue the broken queue items automatically and instead increase the "maxAtteps" value while calling the QueueForAgent activity or method because there is no control when the retrying should stop, however you can achieve it using the below java code (better to write in a function and call from whereever you want).
PRQueueManager qm = tools.getThread().getQueueManager();
return qm.repair(ItemID);
where ItemID is the Queue Item ID.
Get all the items from the Queue table where the status is "Broken-" and iterating on each item, call the above function.
You can check https://pdn.pega.com/how-requeue-failed-agent-items-broken-queue-items-report as well.
Thanks,
Ujjwal