Question

63
Views
Ravi Vellanki (VELLANKI)
Csc

Csc
IN
VELLANKI Member since 2015 5 posts
Csc
Posted: June 18, 2020
Last activity: June 19, 2020
Posted: 18 Jun 2020 6:12 EDT
Last activity: 19 Jun 2020 10:10 EDT
Closed

Issue with tools.getRequestor().queueBatchActivity and tools.getRequestor().waitOnBatchActivity();

 

Hi,

I got an issue while calling activity, AddAutoToQuote in Java code. 

Here is my Java code 

ClipboardPage sharedPage = tools.findPage("OperatorID"); List otherPages = new ArrayList(); otherPages.add(sharedPage);

ct=tools.getRequestor().queueBatchActivity("ZUR-FIG-AUI","AddAutoToQuote",tools.getParameterPage(),tools.getStepPage(),otherPages, false); myStepPage.putObject("pyObject",ct);

 

--------------Retrieval---------

 

java.lang.Object ct=myStepPage.getObject("pyObject"); try{tools.getRequestor().waitOnBatchActivity(ct,60000);// 60 seconds of timeout }catch(PRNoSuchChildException e) { //oLog.error(" No child found "+e); } catch(PRTimeoutExpiredException et) { //oLog.error(" Thread timedout to finish "+et); }

 

When I try to pull this as a child page not getting the pyoutputpage result always showing empty. 

childpage.pyOutputPage.pyID

 

Please check the activity in the attached

Below is the Log details.

 

2020-06-18 13:55:33,247 [PegaWorkManager : 21] [  STANDARD] [   ] [FBIExpress:14.01] (ernal.async.BatchRequestorTask) ERROR  Vellanki@farmers.com - Batch activity "ZUR-FIG-AUI.AddAutoToQuote" threw: 

 

 

Hi,

I got an issue while calling activity, AddAutoToQuote in Java code. 

Here is my Java code 

ClipboardPage sharedPage = tools.findPage("OperatorID"); List otherPages = new ArrayList(); otherPages.add(sharedPage);

ct=tools.getRequestor().queueBatchActivity("ZUR-FIG-AUI","AddAutoToQuote",tools.getParameterPage(),tools.getStepPage(),otherPages, false); myStepPage.putObject("pyObject",ct);

 

--------------Retrieval---------

 

java.lang.Object ct=myStepPage.getObject("pyObject"); try{ tools.getRequestor().waitOnBatchActivity(ct,60000);// 60 seconds of timeout }catch(PRNoSuchChildException e) { //oLog.error(" No child found "+e); } catch(PRTimeoutExpiredException et) { //oLog.error(" Thread timedout to finish "+et); }

 

When I try to pull this as a child page not getting the pyoutputpage result always showing empty. 

childpage.pyOutputPage.pyID

 

Please check the activity in the attached

Below is the Log details.

 

2020-06-18 13:55:33,247 [PegaWorkManager : 21] [  STANDARD] [   ] [FBIExpress:14.01] (ernal.async.BatchRequestorTask) ERROR  Vellanki@farmers.com - Batch activity "ZUR-FIG-AUI.AddAutoToQuote" threw: 

 

 

Can anyone please advise.

 

 

Pega Platform 8.1.7 User Experience Insurance System Architect
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.