Question
TATA Consultancy Services Ltd
IN
Last activity: 29 Jan 2017 23:35 EST
Agent not able to get the node URL in a multi node system
Hello,
In agent activity we are trying to get the server url using pxRequestor.pxReqContextURI property. But as for agents this data in pxRequestor page is not available. So we are getting empty string. We can't use DSS "PublicLinkURL" as it can contain a hardcoded string and in our case the agent can run in multiple nodes.
So, the question remains- How can we get server/node URL from agent activity? Is this at all possible?
We are using Pega 7.1.9.
Thanks for checking out the post. Your comments/suggestions are much appreciated.
Anit
***Updated by Moderator: Lochan. Removed user Ask the Expert tag. Apologies for confusion, shouldn't have been an end-user option***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
OOTB you can not get server/node URL from an agent activity.
you can get host name and node ID from the pxProcess page.
If you want, you could add additonal properties (or use the custom property value group) to the node record to hold URL, create a node data page to fetch the data and then reference the data page
Pegasystems Inc.
IN
Hi Anit,
May i know why you want to fetch server URL in the Agent Activity. Is it a different node in your Multinode environment or is it a different server for different application.
Please explain me in detail so that we can understand your requirement. Kindly share the screen print of your Clipboard page for this Agent thread so that we can see if the URL value has been populated in the clipboard.
Regards,
Ravi
TATA Consultancy Services Ltd
IN
Hello,
Apologies for the lack of clarity in requirement. We have 14 nodes under a cluster and our Agent runs in multiple nodes. It processes diff interface messages and sends notification to a mailbox in case it encounters any errors( say parse exception). Once we receive the email, We know what is the error, but as we have multiple node with different PegaRules log file for each node, it will be good to have the URL of the node( as a node identifier) in the email so that we can go in and check the particular log file for further debugging instead of searching 16 log files. If we can suggest any alternative way of identifying the current node/jvm/server where the agent is executing, that will help as well.
Hope I have clarified the requirement now.
Thanks,
Anit
TATA Consultancy Services Ltd
IN
Hello,
The issue is yet not Resolved. I will apreciate any help in this regard. Thanks for your assistance.
Regards,
Anit
Virtusa IT Consulting
AE
Hello Anit,
Have checked these two rules? "RequestorsOnline" list view and "pxSystemNameNodesList" Report definition?
Thanks,
Habeeb Baig
Updated: 17 Oct 2016 8:13 EDT
TATA Consultancy Services Ltd
IN
Hi Habeeb,
I am not sure how these reports will help me. My question is - How can we get server/node URL from agent activity? Is this at all possible?
Thanks,
Anit
Accepted Solution
Pegasystems Inc.
US
OOTB you can not get server/node URL from an agent activity.
you can get host name and node ID from the pxProcess page.
If you want, you could add additonal properties (or use the custom property value group) to the node record to hold URL, create a node data page to fetch the data and then reference the data page
Pegasystems Inc.
US
Hi Biswas,
Will the below piece of code helps in your Agent activity to get the node name and node ID.
You can do set the above nodeID and nodeName values to corresponding properties in your activity.
Please let us know if it helps at your end.
-Harish
TATA Consultancy Services Ltd
IN
Thanks WERDA and Harish. I am checking the solution. I will let you know whether its working fine.
TATA Consultancy Services Ltd
IN
Hello,
I can confirm this is working fine. I can get the Nodeid from pxProcess page.
Thanks,
Anit
Pegasystems Inc.
IN
Hi Anit,
Thank you for updating your post to let us know that the suggestions above worked. I'm marking this Answered!!
Regards,
Lochan | Community Moderator | Pegasystems Inc.