Support Article

Item not processed from Agent Queue

SA-31027

Summary



Users queued items in their custom queue class derived from the System-Queue- class.

The items should be processed by an agent and create cases. Items were not being picked up by the standard application agent.

Error Messages



Not Applicable


Steps to Reproduce

  1. Create a class derived from System-Queue- class.
  2. Queue the items by using Queue-for-Agent method.
  3. Observe that the items are queued in but are not processed.

Root Cause



Queuing was not configured correctly.
Properties like pyMinimumDateTimeForProcessing and pyItemStatus should be set before calling Queue-for-Agent method.

Resolution



Perform the following local-change:

If the Custom class does not have direct inheritance from System-Queue-DefaultEntry, then use of the Java API is recommended.
// Get a queue manager instance
String itemid = tools.getThread().getQueueManager().enqueueDeferred(myStepPage);
tools.getPrimaryPage().putString("pxRefQueueKey", itemid);


Refer to the Pega Help topic, https://pdn.pega.com/sites/default/files/help_v721/procomhelpmain.htm#methods/queue-for-agent/queue-for-agent.htm, the section Other System-Queue- classes.

Published December 2, 2016 - Updated March 23, 2017


100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.