Support Article

Queue method is not calling the child activity asynchronously

SA-17533

Summary



In an activity Connect-wait method which follows Queue method is not yielding correct results in Pega 7.1.8.
 


Error Messages



Not Applicable.


Steps to Reproduce



1) Create two activities parent activity and Child asynchronous activity.
2) Use the Queue method to call child activity from the parent activity.
3) Make it followed by connect-wait step in the parent activity.
4) Run the parent activity.
 


Root Cause



In an activity, queue method with connect-wait is not supported.

Resolution



Instead of Queue method, use the java step for asynchronus method call and followed by Connect-wait step. The java step is as follows:

tools.getRequestor().queueBatchActivity("Activity_Class_name","activity_name", tools.getParameterPage(), null);
 
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020


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.