Question
Nationale Nederlanden
NL
Last activity: 17 Oct 2019 2:49 EDT
Check Agents status by Agent
We try to use the Agent Management functionality in Pega 7.2.2 by an Agent to check the status of Agents. Running by a user works fine, but when executed by an Agent we got the following error:
We try to use the Agent Management functionality in Pega 7.2.2 by an Agent to check the status of Agents. Running by a user works fine, but when executed by an Agent we got the following error:
Step 5 contains the following java (as in Agent Mangement):
String nodeId = tools.getParamValue("nodeId");
String agentDetailsInJSONFormat = pega.getSystemOperationsProvider().getAgentManagementAPI().getAllAgentsInfoForNode(nodeId);
try{
tools.getPrimaryPage().adoptJSONArray(agentDetailsInJSONFormat,"pxResults");
}catch(InvalidStreamError e){
oLog.error("error while adopting agents list to clipboard"+e);
e.printStackTrace();
}
Anyone clue why the Agent will not run by an agent?