Sure. I was just trying to replicate @FranzS’ log output that doesn’t make sense to me.
It depends:
Create a new rule:
var logger = Java.type('org.slf4j.LoggerFactory').getLogger('org.openhab.rule.' + ctx.ruleUID);
logger.error(('Test124: ' + String(this.storedValues['Test124'])));
Result:
22:26:35.396 [ERROR] [.internal.handler.ScriptActionHandler] - Script execution of rule with UID '8fc7061bec' failed: TypeError: Cannot read property "Test124" from undefined in <eval> at line number 4
openHABian / openHAB 3.2.0-SNAPSHOT - Build #2630