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

Unable to access rules in the same class hierarchy in activities

SA-4810

Summary



User has the following use case:
 
•    There is an activity say A, present in class X.
•    There is another activity say B, present in class Y. A when rule say W, created in class Y which is part of a Step in activity B.
•    Activity A calls Activity B at runtime and the When Rule W throws class hierarchy conflicts (during runtime).
 
The activity A in turn is being called by another activity present in a different class. Similarly, there is a chain of calling activities present in different classes. 

Same scenario works fine in PRPC 6.2 environment. 

Error Messages

  • ** Flow GenerateLetter had an error in step MapSplitName: com.pega.pegarules.pub.runtime.IndeterminateConditionalException: Failed to find a 'RULE-OBJ-WHEN' with the name 'CARDHOLDERANDACCTNUMBERNOTNULL' that applies to 'Data-Corr-MailEnclosure'. There were 5 rules with this name in the rulebase, but none matched this request. The 5 rules named 'CARDHOLDERANDACCTNUMBERNOTNULL' defined in the rulebase are:
  • 5 unrelated to applies-to class 'Data-Corr-MailEnclosure', for example: 'ABC-Card-' class.

Steps to Reproduce

  1. Create an activity with When condition corresponding to Primary page and not to Step page.
  2. Call this activity from another activity and execute the parent activity at runtime.

Root Cause



In PRPC 7.1.x, the activity assembler has been upgraded to raise exceptions in case a WHEN rule is not in the class hierarchy of the step-page. User has defined the step-page in the activity step. However, this step-page is not being defined under the pages & classes tab. 

Therefore, in this scenario, the context of step-page is identified during run-time and the WHEN rule doesn’t come under the class hierarchy of step-page. 

Resolution



Defining the context of step-page in the Pages & Classes tab solves the issue.

User can also use PDC (Predictive Diagnostic Cloud ) and execute the application to identify the places that need to change. More information about the PDC can be found here at the Pega PDN:
  1. https://pdn.pega.com/documents/pega-predictive-diagnostic-cloud-basics
  2. https://pdn.pega.com/pegatube/pega-predictive-diagnostic-cloud-product-overview (Overview  video)
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

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