I'm trying to implement the following node classification. We have 4 nodes pointing to the same db.
I would like to have 2 nodes as "trusted" and 2 as "semitrusted".
Following the manual I performed the following tasks:
1.edit the prconfig.xml of a node adding <env name="initialization/nodeclassification" value="semitrusted"/>
2.create a dynamic system rule Pega-Engine • prconfig/service/public/enable/semitrusted with value "true"
3. Now at run time I would like to know what kind of node it is with @getDataSystemSetting("Pega-Engine", "prconfig/service/public/enable") and I don't get anything.
if I use @getDataSystemSetting("Pega-Engine", "prconfig/service/public/enable/semitrusted") it retrieve a value but our reasoning is that the dynamic setting should set the value and not be used later.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
I think there's some confusion here between the name of the setting, and the value of the setting. Steps 2 and 3 don't seem to agree above. In step 2, the name is "prconfig/service/public/enable/semitrusted" but in step 3 you're passing a name to getDataSystemSetting of "prconfig/service/public/enable" . I would think those two names need to be the same.
/Eric (that's not a setting, just my name with a slash in front of it)
I am also trying to access a DSS set specific to a Node by classification, but I cannot find how to retrieve the setting value appropriate to the current node. I assume that this is buried in the Engine API somewhere, but I have not managed to find it. Also, the value of the setting initialization/nodeclassification does not appear to be on the clipboard.