Question

Primary Page in Queued Activity

Hi Team ,

I am using Queue method to call another activity from an activity and trying to access the primary page or any page by passing as Param but its not working. Any help on this would be much appreciated.

Thanks,

Lalit

Comments

Keep up to date on this post and subscribe to comments

October 16, 2018 - 3:31am

Hello,

I don't think you can send parameters using Queue-For-Agent. I would be working with the Step page or the primary and set properties on those pages to work as parameters.

October 16, 2018 - 3:52pm

Hello Thanks for your response !!!

I am not using Queue-For-Agent and just using Queue method to call activity from another activity.

Thanks,

Lalit

October 17, 2018 - 12:43pm
Response to Lalit_Singh

Oh sorry. What Pega version is it?

October 17, 2018 - 12:52pm
Response to MarcLasserre_GCS

7.1.5

October 18, 2018 - 5:45am

Hello,

I don't think you can pass a page as a parameter with this method. You can either take the entire parameters block from the current running activity or just pas parameters individually.

 

October 25, 2019 - 2:50am

Please try the below solution,

1. In the queue activity, create an input parameter of type javaobject

Example: 
ParamName: CustomerInfoObj Type: JavaObject

2. In the calling activity, pass the value for CustomerInfoObj  param as below,

CustomerInfoObj  = @java("tools.findPage(\"CustomerInfo\")") 

you can pass your desired page to be utilized in queue activity as object, in this scenario I am passing CustomerInfo

3. In the queue activity do the below,

Step1: Create a new page to hold the object passed as input parameter. 
example: CustomerInfo

Step2: Java method. Paste the below java code to copy the object passed as parameter to the clipboard page.

ClipboardPage CustomerInfoSource = (ClipboardPage)tools.getParameterPage().getObject("CustomerInfoObj"); /*get the object parameter*/
ClipboardPage CustomerInfo=(ClipboardPage)tools.findPage("CustomerInfo");  /* find the page created in step1*/
CustomerInfo.putAll(CustomerInfoSource , ClipboardPage.PUTALL_KEEPNEW); /*copy the object to page*/

4. Now the CustomerInfo page is populated with all info from calling activity.