mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #2500 from tilleul/patch-3
Support for context stores using JSONata and evaluateNodeProperty()
This commit is contained in:
		| @@ -558,11 +558,11 @@ function evaluateNodeProperty(value, type, node, msg, callback) { | ||||
|  */ | ||||
| function prepareJSONataExpression(value,node) { | ||||
|     var expr = jsonata(value); | ||||
|     expr.assign('flowContext',function(val) { | ||||
|         return node.context().flow.get(val); | ||||
|     expr.assign('flowContext',function(val, store) { | ||||
|         return node.context().flow.get(val, store); | ||||
|     }); | ||||
|     expr.assign('globalContext',function(val) { | ||||
|         return node.context().global.get(val); | ||||
|     expr.assign('globalContext',function(val, store) { | ||||
|         return node.context().global.get(val, store); | ||||
|     }); | ||||
|     expr.assign('env', function(name) { | ||||
|         var val = getSetting(node, name); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user