Support Article
JAVA Step does not get invoked
SA-13629
Summary
User has a Java step in an activity to queue another activity as below:
tools.getRequester().queueBatchActivity(“Applies-To class”,”CalledActivity”,paramsPage)
The called activity does not get invoked the required way after upgrading to Pega 7.
An error is displayed in the logs stating the called activity is not found even though it exists.
Error Messages
Caused by: com.pega.pegarules.pub.generator.RuleNotFoundException: Failed to find a 'RULE-OBJ-ACTIVITY' with the name 'CalledActivity'
Steps to Reproduce
1. Create an Activity A.
2. Create another Activity B and add a java method to queue activity A as below :
tools.getRequester().queueBatchActivity(“Applies-To class”,”ActivityA”,paramsPage)
Root Cause
The operator's ruleset list was not identified correctly.
Resolution
Add the following parameters in the parameter page before calling queueBatchActivity():
paramsPage.putString("pzInheritRuleSetList","true");
paramsPage.putString("pzUseCurrentAccessGroupForChild","true");
Published September 2, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.