Question
Pegasystems Inc.
IN
Last activity: 28 Jan 2016 0:59 EST
Debuggin QueueBatchActivity()
Hi,
We are trying to implement the new Bulk-uploading process using queuebatchactivity() to spawn multiple requestors. I want to understand some basic things related to child-requestor, I didn't find good documentation on how we can accomplish them; hence posting here. Any help or approach will be appreciated.
Below are the things I want to understand:
1. How we can debug the child-requestor(s) spawned from queueBatchActivity(). Is it from SMA, I have tried, but in my case, I am unable to see the new requestor in "REQUESTOR MANAGEMENT".
2. Is logging from new child-requestor(s) doesn't log anything in PEGA-LOG(s). I tried doing this using oLog.error() in new PRRequestor, but unable to see any in LOGS. Am I missing something?
3. I think the max limit for child-requestor(s) from a browser requestor is 10. After that it skips requestors instead of queuing them. Am I right? Any approach how we can handle this.
Thanks in advance!
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
com.pega.pegarules.session.internal.mgmt.base.RequestorChildren has decent amount of debug logs. Regarding your question 3, yes your understanding is right, it is controlled by prconfig setting "services/maxRequestorChildren"
Pegasystems Inc.
IN
Hi Kevin,
I tried debugging logs for "com.pega.pegarules.session.internal.mgmt.base.RequestorChildren" in Pega Log settings. It prints only the activity the child-requestor invokes and Requestor Track ID. If I try to Log-Messages in the invoked activity it is not showing in LOGS.
Pegasystems Inc.
US
can you add com.pega.pegarules.session.internal.async.BatchRequestorTask and com.pega.pegarules.session.internal.async.Agent? Need to see if the activity has been invoked or not.
Pegasystems Inc.
IN
Thanks Kevin, it helped.
Pegasystems Inc.
IN
Hi,
I am facing one more issue, I have added a Top-Level page into aOtherPages parameter of queueBatchActivity(), but still, I am unable to findPage that page in batch child-requestor.
Code is like this:==============================================================================
/*Setting of Parameters for QueueBatchActivity */
ClipboardPage operatorIDPage = tools.findPage("OperatorID");
ClipboardPage cpBulkUploadBatchRequestor = operatorIDPage.copy();
cpBulkUploadBatchRequestor.rename("BulkUploadBatchRequestor");
ClipboardPage pgColumnsList = tools.findPage("ColumnsList"),
pgDefaultValues = tools.findPage("DefaultValuesPage"),
pgLogPage= tools.findPage("LogPage");
List listPages = new ArrayList();
listPages.add(myStepPage);
listPages.add(pgColumnsList);
listPages.add(pgDefaultValues);
listPages.add(pgLogPage);
listPages.add(cpBulkUploadBatchRequestor);
ParameterPage objParamPage = tools.getParameterPage();
/*End of Parameter Settings*/
tools.getRequestor().queueBatchActivity(myStepPage.getString("pxObjClass"), "crmProcessCSVFile", objParamPage, null, listPages, false);
==========In activity "crmProcessCSVFile", I am calling the following resulting in "NullPointer Exception"================
ClipboardPage pgLogPage = tools.findPage("LogPage");
=================================================================================================
Pegasystems Inc.
US
seems that your child requestor does not have the access of the "LogPage", can you check this link to see if it helps? https://community.pega.com/support/support-articles/issue-child-requestor-access-group-0
Pegasystems Inc.
IN
No Kevin, I tried adding those two attributes, but didn't help.
Pegasystems Inc.
US
sorry to hear that. I suggest you inspect your testing activity in generated java and see which variable is null and go from there. If you are stuck but with reproducible test cases, create a SR if necessary.
Pegasystems Inc.
US
Pegasystems Inc.
IN
Hi Marissa, i didn't open any SR. We have stopped our analysis on this API for now because of some release deliverable.