Make $item also available in expressions

This commit is contained in:
Jan Oberhauser 2020-01-03 16:37:13 -06:00
parent 6c5c5bcf2d
commit 5677d72abd

View file

@ -271,6 +271,10 @@ export class WorkflowDataProxy {
$binary: {}, // Placeholder
$data: {}, // Placeholder
$env: this.envGetter(),
$item: (itemIndex: number) => {
const dataProxy = new WorkflowDataProxy(this.workflow, this.runExecutionData, this.runIndex, itemIndex, this.activeNodeName, this.connectionInputData);
return dataProxy.getDataProxy();
},
$node: this.nodeGetter(),
$parameter: this.nodeParameterGetter(this.activeNodeName),
};