From 34c1123636d3fb7f2da0a049fbeab7d4a23ef19a Mon Sep 17 00:00:00 2001 From: MedAliMarz Date: Fri, 23 Jul 2021 18:03:42 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Add=20=20expression=20posi?= =?UTF-8?q?tion=20variable=20(#2024)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/workflow/src/Interfaces.ts | 1 + packages/workflow/src/WorkflowDataProxy.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/workflow/src/Interfaces.ts b/packages/workflow/src/Interfaces.ts index f48d605e2d..b040ac1db8 100644 --- a/packages/workflow/src/Interfaces.ts +++ b/packages/workflow/src/Interfaces.ts @@ -608,6 +608,7 @@ export interface IWorkflowDataProxyData { $json: any; // tslint:disable-line:no-any $node: any; // tslint:disable-line:no-any $parameter: any; // tslint:disable-line:no-any + $position: any; // tslint:disable-line:no-any $workflow: any; // tslint:disable-line:no-any } diff --git a/packages/workflow/src/WorkflowDataProxy.ts b/packages/workflow/src/WorkflowDataProxy.ts index fe52de7a07..516d4056cf 100644 --- a/packages/workflow/src/WorkflowDataProxy.ts +++ b/packages/workflow/src/WorkflowDataProxy.ts @@ -395,6 +395,7 @@ export class WorkflowDataProxy { $node: this.nodeGetter(), $self: this.selfGetter(), $parameter: this.nodeParameterGetter(this.activeNodeName), + $position: this.itemIndex, $runIndex: this.runIndex, $mode: this.mode, $workflow: this.workflowGetter(),