Queue method loses context in agent activity
A custom agent with custom class was configured to process work objects. The agent uses the Queue method to call an activity, which in turn calls another activity in the background for business needs.
The first activity was called correctly, but the second activity started by Queue method was not found by the system. The context was lost. A runtime exception was generated.
Caused by: com.pega.pegarules.pub.generator.RuleNotFoundException: Failed to find instance System-Queue-TestQueue.TestSample of type Rule-Obj-Activity
Steps to Reproduce
1. Create a custom queue class for an agent.
2. Create a custom agent associated to created class.
3. Create the activity started by the agent, and call the second activity with Queue method.
The agent is configured with a dedicated access group on the security tab. It has access to the expected rulesets to find the activities. Calling the second activity by Queue method breaks the context due to batch requestor’s involvement.
Perform the local-change given below to keep the agent’s context.
Set pzInheritRulesetList parameter to True.
50% found this useful