Exception while agent executes StorePlan activity
Plan work objects, which are in Pending-Approval stage, are processed by an agent by performing ResumeFlow. An exception occurs when the utility shape is executed in CreatePlan flow, which executes StorePlan activity.
**Date and time**,472 [ PegaRULES-Batch-5] [ STANDARD] [ ] [ct_Composer:07.12.01] ( StandardValidate.Rule_.Action) ERROR - Unable
to obtain RuleSet Context
java.lang.NullPointerException: cannot match against null ruleset specification
Steps to Reproduce
- Create a Plan work object in Product Composer System.
- Process it to Pending-Approval stage.
- Write an activity, which exectues ResumeFlow if the plan work objects are in Pending-Approval stage.
- Design the activity to an agent, and start the agent.
pyRuleset and pyRulesetVersion are null on the stepPage of Standardvalidate activity in Step 2. This occurs only in agent processing. When the activity gets executed through agent, the data page does not have values for pyruleset and pyrulesetversion. This results in the issue.
However, when the same activity is executed stand-alone, the values are populated and it works fine.
Perform the following local-change:
Set the pyRuleset and pyRulesetVersion, as given below, in CreateUnionDataRules activity.