Last activity: 28 Jan 2016 0:59 EST
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!
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"
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.
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.
Thanks Kevin, it helped.
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();
ClipboardPage pgColumnsList = tools.findPage("ColumnsList"),
pgDefaultValues = tools.findPage("DefaultValuesPage"),
List listPages = new ArrayList();
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");
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
No Kevin, I tried adding those two attributes, but didn't help.
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.
Hi Pankaj Chopra,
Please let us know the number of the SR if you indeed open one.
Hi Marissa, i didn't open any SR. We have stopped our analysis on this API for now because of some release deliverable.