Error occurs when decision table is triggered in a loop
An error occurs when looping a list using 'For each Page' in a data transform to trigger a decision table and retrieve values.
Failed to find a 'RULE-DECLARE-DECISIONTABLE' with the name 'DECISIONTEST' that applies to 'Gcs-App-Work-Test'. There were 1 rules with this name in the rulebase, but none matched this request. The 1 rules named 'DECISIONTEST' defined in the rulebase are:
Steps to Reproduce
- Loop the embedded pages using 'For each Page' in a data transform.
- Configure a decision table in the Page context of each page to loop in. DataTransform should be configured in a different class context.
- Trigger the decision table.
- Fetch the values.
- Set the value to a parameter.
@(PEGA-RULES:ExpressionEvaluators).evaluateDecisionTable(DecisionTableName) runs in the dataTansform Class context. The decision table is triggered from embedded pages of a page list, however, the context is not passed to the evaluateDecisionTable function.
Perform the following local-change:
Use the below function to trigger the decision table of page context for each loop that is run.