@veloceapps/sdk 8.0.0-157 → 8.0.0-159
Sign up to get free protection for your applications and to get access to all the features.
- package/core/services/flow-state.service.d.ts +1 -0
- package/esm2020/core/services/flow-state.service.mjs +7 -4
- package/fesm2015/veloceapps-sdk-core.mjs +6 -3
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +6 -3
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
@@ -901,6 +901,9 @@ class FlowStateService {
|
|
901
901
|
get stateId() {
|
902
902
|
return this.stateId$.value;
|
903
903
|
}
|
904
|
+
get isExecutionInProgress$() {
|
905
|
+
return this.statefulExecutionInProgress$.asObservable();
|
906
|
+
}
|
904
907
|
isInitialized$() {
|
905
908
|
return combineLatest([this.stateId$, this.quoteDraftService.isInitialized$]).pipe(map$1(values => values.some(Boolean)));
|
906
909
|
}
|
@@ -1231,13 +1234,13 @@ class FlowStateService {
|
|
1231
1234
|
return this.executeProcessorScript(request, configurationProcessor, executable.inputData);
|
1232
1235
|
}
|
1233
1236
|
executeProcessorScript(request, configurationProcessor, inputData) {
|
1234
|
-
|
1237
|
+
const scope = configurationProcessor.ownerId && this.getScopeByOwnerId(configurationProcessor.ownerId);
|
1238
|
+
let functionToExecute = this.executedFunctions[scope + configurationProcessor.apiName];
|
1235
1239
|
if (!functionToExecute) {
|
1236
1240
|
const script = `${configurationProcessor.script}\nreturn transform;`;
|
1237
|
-
const scope = configurationProcessor.ownerId && this.getScopeByOwnerId(configurationProcessor.ownerId);
|
1238
1241
|
const sourceMap = `\n//# sourceURL=${scope ? scope + '/' : ''}${configurationProcessor.apiName}.js`;
|
1239
1242
|
functionToExecute = new Function(script + sourceMap)();
|
1240
|
-
this.executedFunctions[configurationProcessor.apiName] = functionToExecute;
|
1243
|
+
this.executedFunctions[scope + configurationProcessor.apiName] = functionToExecute;
|
1241
1244
|
}
|
1242
1245
|
return functionToExecute({
|
1243
1246
|
request,
|