@veloceapps/sdk 8.0.0-157 → 8.0.0-158
Sign up to get free protection for your applications and to get access to all the features.
@@ -1231,13 +1231,13 @@ class FlowStateService {
|
|
1231
1231
|
return this.executeProcessorScript(request, configurationProcessor, executable.inputData);
|
1232
1232
|
}
|
1233
1233
|
executeProcessorScript(request, configurationProcessor, inputData) {
|
1234
|
-
|
1234
|
+
const scope = configurationProcessor.ownerId && this.getScopeByOwnerId(configurationProcessor.ownerId);
|
1235
|
+
let functionToExecute = this.executedFunctions[scope + configurationProcessor.apiName];
|
1235
1236
|
if (!functionToExecute) {
|
1236
1237
|
const script = `${configurationProcessor.script}\nreturn transform;`;
|
1237
|
-
const scope = configurationProcessor.ownerId && this.getScopeByOwnerId(configurationProcessor.ownerId);
|
1238
1238
|
const sourceMap = `\n//# sourceURL=${scope ? scope + '/' : ''}${configurationProcessor.apiName}.js`;
|
1239
1239
|
functionToExecute = new Function(script + sourceMap)();
|
1240
|
-
this.executedFunctions[configurationProcessor.apiName] = functionToExecute;
|
1240
|
+
this.executedFunctions[scope + configurationProcessor.apiName] = functionToExecute;
|
1241
1241
|
}
|
1242
1242
|
return functionToExecute({
|
1243
1243
|
request,
|