Issue
When using the Service Level Agreement (SLA) Queue Processor (QP), queue items enter a broken state if the Activity-End method is invoked in the EstablishContext activity. The broken queue items reference the following error:
Caused by: com.pega.pegarules.pub.runtime.ActivityTerminateException: PRRuntimeError
at com.pega.pegarules.session.internal.mgmt.Executable.terminateActivity(Executable.java:3815)
at com.pegarules.generated.activity.ra_action_establishcontext_5d104e556daf03efe1c94f6776d7b4b0.step3_circum0(ra_action_establishcontext_5d104e556daf03efe1c94f6776d7b4b0.java:572)…
This error does not occur when using the SLA agent.
Steps to reproduce
- Set the UseSLAQueueProcessor Dynamic System Setting to “true”.
- Create a case type which uses at least one SLA.
- Create a case of that case type and process it until it is queued for the SLA Queue Processor.
A processing error occurs and subsequently triggers the Activity-End step in the EstablishContext process.
Root Cause
A defect in the Pega Platform causes the Activity-End step to create a broken queue item when it returns an ActivityTerminateException. This issue can occur in various scenarios, including, but not limited to, instances where an assignment is unexpectedly missing when the SLA queue item is picked for processing.
Solution
This issue is planned to be addressed in a future Pega Platform release. Issues are prioritized based on impact, severity, and capacity. The specific release for the fix has not yet been determined. This section will be updated with release details when the fix for this issue is available.
In the interim, use the SLA Agent instead of the queue processor to avoid this error.