Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Exception while agent executes StorePlan activity

SA-25659

Summary



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.

Error Messages



**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

  1. Create a Plan work object in Product Composer System.
  2. Process it to Pending-Approval stage.
  3. Write an activity, which exectues ResumeFlow if the plan work objects are in Pending-Approval stage.
  4. Design the activity to an agent, and start the agent.

Root Cause



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.

Resolution



Perform the following local-change:
Set the pyRuleset and pyRulesetVersion, as given below, in CreateUnionDataRules activity.
Suggest Edit

Published August 23, 2017 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us