Question

How to use getAgentDetailsForNode

How does one use the AgentUtils.getAgentDetailsForNode(java.lang.String aRuleSetName, java.lang.String qName, java.lang.String nodeName) API? No matter what I try for nodeName, I don't get any results. What is nodeName supposed to be?

getAgentDetails, for the current node only, works fine.

Correct Answer
April 15, 2019 - 4:49pm

Hi Stacy,

After cross checking the references of AgentUtils.getAgentDetailsForNode method in later Pega versions noticed in the code that we are passing System.Status.Nodes.pySysNodeID property value to nodeName parameter to the method. Also noticed that we are converting the agent ruleset name, agent name and node id to lower case, so you can try that.

Hope this might help you.

Regards,

Mahesh M

Comments

Keep up to date on this post and subscribe to comments

April 15, 2019 - 3:47pm

Oh, and I am using version 7.2.1 by the way.

April 15, 2019 - 4:49pm

Hi Stacy,

After cross checking the references of AgentUtils.getAgentDetailsForNode method in later Pega versions noticed in the code that we are passing System.Status.Nodes.pySysNodeID property value to nodeName parameter to the method. Also noticed that we are converting the agent ruleset name, agent name and node id to lower case, so you can try that.

Hope this might help you.

Regards,

Mahesh M

April 15, 2019 - 8:31pm
Response to Mahesh Midthuru

Thanks for the tip about lower case.  All three parameters, including the node id, must be lowercase.

April 16, 2019 - 5:01pm
Response to StacyM73

Yes, i noticed that while exploring the referenced code in Pega 7.4.