Question

53
Views
Close popover
Inoka Jayawardhana (InokaJ62)
Cigna Corporation

Cigna Corporation
US
InokaJ62 Member since 2020 1 post
Cigna Corporation
Posted: November 12, 2020
Last activity: November 12, 2020

Asynchronous rest service using separate queue class

Hi,

Question on Asynchronous rest service using separate queue class.

  • Service rule is configured as  "Execute Asynchronously (Queue For Execution)"
  • Request Processor use separate class (System-Queue-ExecutionRequest-Service-CreateClaim)
  • Dequeuing option :-  Maximum number of execution attempts - 3
  • By default, the ProcessQueue agent from the Pega-IntSvcs Agents rule runs every two minutes. 

The first execution of an asynchronous service request occurs, if any error thrown, PR_SYS_QUEUE_EXECREQ_SVC is updated with status "Scheduled" and pyAttempts 1. But agent doesn't pick up the record. It remains scheduled.

This works with below changes but I need to use a separate class in queue processor

  • Use default Pega class System-Queue-ExecutionRequest-Service-Default in request processor. 
  • ProcessQueue (agent activity) runs on "System-Queue-ExecutionRequest-Service-CreateClaim" class using separate agent.

Product version :- 8.4.2

Thanks

Pega Platform 8.4.2 Data Integration Java and Activities Senior System Architect