@eo-sdk/client 8.10.1 → 8.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +10 -4
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js.map +1 -1
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js +1 -1
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js.map +1 -1
- package/bundles/eo-sdk-client.umd.js +6 -11
- package/bundles/eo-sdk-client.umd.js.map +1 -1
- package/bundles/eo-sdk-client.umd.min.js +1 -1
- package/bundles/eo-sdk-client.umd.min.js.map +1 -1
- package/eo-sdk-client.metadata.json +1 -1
- package/esm2015/app/eo-client/about-state/about-state.component.js +3 -3
- package/esm2015/app/eo-framework/app-shell/app-bar/app-bar.component.js +4 -8
- package/esm2015/app/eo-framework/app-shell/app-bar/app-process/app-process.component.js +2 -2
- package/esm2015/projects/eo-sdk/core/lib/service/auth/auth.service.js +2 -2
- package/esm2015/projects/eo-sdk/core/lib/service/bpm/bpm.service.js +8 -4
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +8 -4
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
- package/fesm2015/eo-sdk-client.js +6 -10
- package/fesm2015/eo-sdk-client.js.map +1 -1
- package/package.json +2 -2
- package/projects/eo-sdk/core/eo-sdk-client-projects-eo-sdk-core.metadata.json +1 -1
- package/projects/eo-sdk/core/lib/service/bpm/bpm.service.d.ts +4 -1
- package/projects/eo-sdk/core/package.json +1 -1
|
@@ -3216,14 +3216,19 @@
|
|
|
3216
3216
|
* @param types List of dms object types to fetch executable processes for
|
|
3217
3217
|
* @returns List of executable processes
|
|
3218
3218
|
*/
|
|
3219
|
-
BpmService.prototype.getExecutableProcesses = function (types) {
|
|
3219
|
+
BpmService.prototype.getExecutableProcesses = function (types, useCached) {
|
|
3220
3220
|
if (this.capabilities.hasCapability('bpm')) {
|
|
3221
|
-
return this.fetchExecutableProcesses(types);
|
|
3221
|
+
return (!!this.executableProcesses && useCached) ? rxjs.of(this.executableProcesses) : this.fetchExecutableProcesses(types);
|
|
3222
3222
|
}
|
|
3223
3223
|
else {
|
|
3224
3224
|
return rxjs.of([]);
|
|
3225
3225
|
}
|
|
3226
3226
|
};
|
|
3227
|
+
BpmService.prototype.initExecutableProcesses = function () {
|
|
3228
|
+
var _this = this;
|
|
3229
|
+
var uri = '/bpm/process/executable';
|
|
3230
|
+
return this.backend.get(uri).pipe(operators.tap(function (res) { return _this.hasMainExecutableProcesses = res === null || res === void 0 ? void 0 : res.length; }));
|
|
3231
|
+
};
|
|
3227
3232
|
/**
|
|
3228
3233
|
* Gets executable Processes for a given set of dms object.You'll get
|
|
3229
3234
|
* only the processes that are executable for all of them.
|
|
@@ -3239,11 +3244,12 @@
|
|
|
3239
3244
|
* @returns List of executable processes
|
|
3240
3245
|
*/
|
|
3241
3246
|
BpmService.prototype.fetchExecutableProcesses = function (types) {
|
|
3247
|
+
var _this = this;
|
|
3242
3248
|
var uri = '/bpm/process/executable?form=true&fields=true';
|
|
3243
3249
|
if (types) {
|
|
3244
3250
|
uri += "&type=" + types.join(',');
|
|
3245
3251
|
}
|
|
3246
|
-
return this.backend.get(uri).pipe(operators.map(function (res) { return res; }));
|
|
3252
|
+
return this.backend.get(uri).pipe(operators.map(function (res) { return res; }), operators.tap(function (res) { return _this.executableProcesses = res; }));
|
|
3247
3253
|
};
|
|
3248
3254
|
/**
|
|
3249
3255
|
* Getter for a processes file. The file of a process contains
|
|
@@ -3900,7 +3906,7 @@
|
|
|
3900
3906
|
this.prepareService.refreshPreparedItemsCount();
|
|
3901
3907
|
}
|
|
3902
3908
|
var todo = [
|
|
3903
|
-
this.bpmService.
|
|
3909
|
+
this.bpmService.initExecutableProcesses(),
|
|
3904
3910
|
this.systemService.getSystemDefinition(currUser)
|
|
3905
3911
|
];
|
|
3906
3912
|
return rxjs.forkJoin(todo).pipe(operators.map(function () { return currUser; }));
|