setExecuteFlagValue

setExecuteFlagValue(name:  String
                    value: Boolean): Boolean;

The setExecuteFlagValue method of the Node class sets the effective value of a flag used in executeWhen instructions.

The flag is a Boolean global constant. However, the defined value of the global constant is not used for an executeWhen instruction. Instead, the effective value of the global constant is read from the [JadeExecuteFlags] section of the JADE initialization file when the node is initialized.

The following code fragment shows the use of the setExecuteFlagValue method with the clearMethodCache method, which is required to cause methods to be reloaded with changed flag values.

node.setExecuteFlagValue("DebugTest", true);
node.clearMethodCache();