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

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

Was this useful?

100% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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