Question
EPAM Systems
CA
Last activity: 25 Oct 2019 2:50 EDT
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
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
FR
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.
EPAM Systems
CA
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
Pegasystems Inc.
FR
Oh sorry. What Pega version is it?
EPAM Systems
CA
7.1.5
Pegasystems Inc.
FR
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.
Wells Fargo
IN
Below link would be helpful:
Wells Fargo
IN
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.