Question
Charles Schwab
US
Last activity: 26 Jun 2024 10:36 EDT
Can we have add custom parameters in Runtime configuration file component, where the user can modify the value and user in the solution
Hi,
Can we add custom fields in runtime config file and access the runtime config as an xml component in the automation and access fields and values from the runtime config file to use them in the solution.
Please suggest if this is possible or not. if not possible please suggest any other solution for the same requirement. Where we can access fields from outside the solution and modify whenever there is a change required without doing any code changes.
Thank you,
Anuroop
@AnuroopSamratS16978510While it certainly is possible to read the RuntimeConfig.xml in a solution, I would not recommend using it for other than its intended purpose.
For this use case, the best way to do this is to use the Pega Platform and create a Node-level DataPage and source these values from it. These values could be Dynamic System Settings or come from a Production Ruleset even. You can use the Robot Manager REST Connector to gather these values in your automation (presumably on startup, but you can get them whenever you need them) and do with them what you wish.
If you're not using Robot Manager, another solution would be to create your own file and place it in a known location and read from it there. You'd need to make sure it was located somewhere where every user had at least read-only access.