diff --git a/packages/workflow/src/Expression.ts b/packages/workflow/src/Expression.ts index 0ecc6e0a93..964eb128ae 100644 --- a/packages/workflow/src/Expression.ts +++ b/packages/workflow/src/Expression.ts @@ -118,7 +118,7 @@ export class Expression { // Execute the expression try { // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call - tmpl.tmpl('{{global=this;}}', data); + tmpl.tmpl('{{this.Promise=global.Promise;global=this;}}', data); // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call const returnValue = tmpl.tmpl(parameterValue, data); if (typeof returnValue === 'function') {