Question6Replies1367Views JonnyGar Member since 2009 91 posts BNY Mellon Posted: August 20, 2015Last activity: August 21, 2015 Closed How to read prconfig settings in v6/v7?I can't find a ready API for this.I found a reference to PREngineProvider.getExec().getSettings().getSetting(settingname) (see here ADP-Chaining: Invalid/ Bad configurations and assumptions )Is there a an API visible to activity Java (PublicAPI / PegaAPI?)Our interest is in reading node-specific settings. System Administration ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 5 years agoAdityaSirohi930765655 replied to JonnyGarFor Dynamic system setting:tools.getSystemSettings().getDynamic("RULE_SET","DYNAMIC_SYSTEM_SETTING");tools.getSystemSettings(); should return everything, then you can ask the systemsettings object for whatever you need. Its available in the public API. Posted: 5 years agoJonnyGar BNY Mellon replied to AdityaSirohi930765655re: tools.getSystemSettings(); should return everything...Well, it *should* in the normative sense. It should.In actuality, it returns a PRSystemSettings object, which only provides access to Rule-Admin-System-Settings or Data-Admin-System-Settings, and not prconfig settings.I'm looking at this for v6/v7. Posted: 5 years agoVipinKumar38163630 replied to JonnyGarThe settings are visible on SMA so you should be able to figure it out that way - JMX client call. Posted: 5 years agoJonnyGar BNY Mellon replied to VipinKumar38163630That's an enormous hack. The JMX is returning XML... of all the settings. Overkill.We're well victims of a decision that was made years ago. It's just so frustrating to just say, "we can use a prconfig setting, and read it", and then find that that API has long been gone. Posted: 5 years agoVipinKumar38163630 replied to JonnyGarHow is that a hack? The engine provides information about its prconfig and not prconfig settings using MBeans and the XML can be parsed easily. Posted: 5 years agoJonnyGar BNY Mellon replied to VipinKumar38163630Correction: it's a kludge, not a hack.A filesystem-based config option is not visible to the application. The suggestion here is to use JMX to fetch the data which should be available in the first place.Here's our use case: In our cloud infrastructure, we want to easily denote different profiles of nodes, so each profile could reference a particular list of rulesets.(see here: AgentManager - How to programatically manage bulk init/start/stop of Agents ) I thought it would be easy. Maybe it was back in v5 that prconfig properties could be read.