@eo-sdk/client 8.12.0 → 8.12.1
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 +17 -6
- 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 +19 -15
- 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/esm2015/app/eo-client/about-state/about-state.component.js +3 -3
- package/esm2015/app/eo-framework/app-shell/app-bar/app-process/app-process.component.js +17 -14
- package/esm2015/projects/eo-sdk/core/lib/service/bpm/bpm.service.js +18 -7
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +17 -6
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
- package/fesm2015/eo-sdk-client.js +18 -15
- package/fesm2015/eo-sdk-client.js.map +1 -1
- package/package.json +2 -2
- package/projects/eo-sdk/core/lib/service/bpm/bpm.service.d.ts +6 -1
- package/projects/eo-sdk/core/package.json +1 -1
|
@@ -3214,11 +3214,14 @@
|
|
|
3214
3214
|
* Getter for the executable Processes. If types are provided, you'll get
|
|
3215
3215
|
* only the processes that are executable for all of them
|
|
3216
3216
|
* @param types List of dms object types to fetch executable processes for
|
|
3217
|
+
* @param useCached If the cached data should be returned rather than requesting again
|
|
3218
|
+
* @param additionalData If the additional form data should be also included
|
|
3219
|
+
* @param modelid The process model ID to only return the data for one process
|
|
3217
3220
|
* @returns List of executable processes
|
|
3218
3221
|
*/
|
|
3219
|
-
BpmService.prototype.getExecutableProcesses = function (types, useCached) {
|
|
3222
|
+
BpmService.prototype.getExecutableProcesses = function (types, useCached, additionalData, modelid) {
|
|
3220
3223
|
if (this.capabilities.hasCapability('bpm')) {
|
|
3221
|
-
return (!!this.executableProcesses && useCached) ? rxjs.of(this.executableProcesses) : this.fetchExecutableProcesses(types);
|
|
3224
|
+
return (!!this.executableProcesses && useCached) ? rxjs.of(this.executableProcesses) : this.fetchExecutableProcesses(types, additionalData, modelid);
|
|
3222
3225
|
}
|
|
3223
3226
|
else {
|
|
3224
3227
|
return rxjs.of([]);
|
|
@@ -3236,18 +3239,26 @@
|
|
|
3236
3239
|
* @returns List of executable processes
|
|
3237
3240
|
*/
|
|
3238
3241
|
BpmService.prototype.getExecutableProcessesForDmsObjects = function (dmsObjects) {
|
|
3239
|
-
return this.getExecutableProcesses(dmsObjects.map(function (o) { return o.typeName; }));
|
|
3242
|
+
return this.getExecutableProcesses(dmsObjects.map(function (o) { return o.typeName; }), false, true);
|
|
3240
3243
|
};
|
|
3241
3244
|
/**
|
|
3242
3245
|
* Fetches executable Processes from the backend.
|
|
3243
3246
|
* @param types List of dms object types to fetch executable processes for
|
|
3247
|
+
* @param additionalData If the additional form data should be also included
|
|
3248
|
+
* @param modelid The process model ID to only return the data for one process
|
|
3244
3249
|
* @returns List of executable processes
|
|
3245
3250
|
*/
|
|
3246
|
-
BpmService.prototype.fetchExecutableProcesses = function (types) {
|
|
3251
|
+
BpmService.prototype.fetchExecutableProcesses = function (types, additionalData, modelid) {
|
|
3247
3252
|
var _this = this;
|
|
3248
|
-
var uri = '/bpm/process/executable
|
|
3253
|
+
var uri = '/bpm/process/executable';
|
|
3254
|
+
if (additionalData) {
|
|
3255
|
+
uri += '?form=true&fields=true';
|
|
3256
|
+
}
|
|
3249
3257
|
if (types) {
|
|
3250
|
-
uri += "
|
|
3258
|
+
uri += (additionalData ? '&' : '?') + ("type=" + types.join(','));
|
|
3259
|
+
}
|
|
3260
|
+
if (modelid) {
|
|
3261
|
+
uri += (additionalData || types ? '&' : '?') + ("modelid=" + modelid);
|
|
3251
3262
|
}
|
|
3252
3263
|
return this.backend.get(uri).pipe(operators.map(function (res) { return res; }), operators.tap(function (res) { return _this.executableProcesses = res; }));
|
|
3253
3264
|
};
|