@valtimo/process 4.15.2-next-main.15 → 4.15.3-next-main.16

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.
@@ -4,449 +4,447 @@
4
4
  (global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.process = {}), global.ng.core, global.ng.common.http, global.config, global.ng.common, global.components, global.ngxToastr, global.ng.platformBrowser.animations, global.BpmnJS, global.heatmap));
5
5
  }(this, (function (exports, i0, i1, i2, common, components, ngxToastr, animations, BpmnJS, heatmap) { 'use strict';
6
6
 
7
- /*
8
- * Copyright 2015-2020 Ritense BV, the Netherlands.
9
- *
10
- * Licensed under EUPL, Version 1.2 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" basis,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
- var ProcessService = /** @class */ (function () {
23
- function ProcessService(http, configService) {
24
- this.http = http;
25
- this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
26
- }
27
- ProcessService.prototype.getProcessDefinitions = function () {
28
- return this.http.get(this.valtimoEndpointUri + "process/definition");
29
- };
30
- ProcessService.prototype.getProcessDefinitionVersions = function (key) {
31
- return this.http.get(this.valtimoEndpointUri + "process/definition/" + key + "/versions");
32
- };
33
- ProcessService.prototype.getProcessDefinition = function (key) {
34
- return this.http.get(this.valtimoEndpointUri + "process/definition/" + key);
35
- };
36
- ProcessService.prototype.getProcessDefinitionStartFormData = function (processDefinitionKey) {
37
- return this.http.get(this.valtimoEndpointUri + "process/definition/" + processDefinitionKey + "/start-form");
38
- };
39
- ProcessService.prototype.startProcesInstance = function (key, businessKey, variables) {
40
- return this.http.post(this.valtimoEndpointUri + "process/definition/" + key + "/" + businessKey + "/start", variables);
41
- };
42
- ProcessService.prototype.getProcessDefinitionXml = function (processDefinitionId) {
43
- return this.http.get(this.valtimoEndpointUri + "process/definition/" + processDefinitionId + "/xml");
44
- };
45
- ProcessService.prototype.getProcessXml = function (id) {
46
- return this.http.get(this.valtimoEndpointUri + "process/" + id + "/xml");
47
- };
48
- ProcessService.prototype.getProcessCount = function (id) {
49
- return this.http.post(this.valtimoEndpointUri + "v2/process/definition/" + id + "/count", {
50
- 'key': id,
51
- 'processVariables': [{ '@type': 'boolean', 'name': 'active', 'value': true }]
52
- });
53
- };
54
- ProcessService.prototype.getProcessHeatmapCount = function (processDefinition) {
55
- return this.http.get(this.valtimoEndpointUri + "process/definition/" + processDefinition.key + "/heatmap/count?version=" + processDefinition.version);
56
- };
57
- ProcessService.prototype.getProcessHeatmapDuration = function (processDefinition) {
58
- return this.http.get(this.valtimoEndpointUri + "process/definition/" + processDefinition.key + "/heatmap/duration?version=" + processDefinition.version);
59
- };
60
- ProcessService.prototype.getProcessInstances = function (key, page, size, sort) {
61
- var params = new i1.HttpParams()
62
- .set('page', page.toString())
63
- .set('size', size.toString())
64
- .set('sort', sort);
65
- return this.http.post(this.valtimoEndpointUri + "v2/process/" + key + "/search", {}, { 'params': params });
66
- };
67
- ProcessService.prototype.getProcessInstance = function (processInstanceId) {
68
- return this.http.get(this.valtimoEndpointUri + "process/" + processInstanceId, {});
69
- };
70
- ProcessService.prototype.getProcessInstanceTasks = function (id) {
71
- return this.http.get(this.valtimoEndpointUri + "process/" + id + "/tasks", {});
72
- };
73
- ProcessService.prototype.getProcessInstanceVariables = function (id, variableNames) {
74
- return this.http.post(this.valtimoEndpointUri + "process-instance/" + id + "/variables", variableNames);
75
- };
76
- ProcessService.prototype.addProcessInstancesDefaultVariablesValues = function (processInstances) {
77
- var _this = this;
78
- processInstances.forEach(function (processInstance) { return _this.addDefaultVariablesValues(processInstance); });
79
- return processInstances;
80
- };
81
- ProcessService.prototype.addDefaultVariablesValues = function (processInstance) {
82
- if (!processInstance['startUser']) {
83
- processInstance.startUser = processInstance.startUserId;
84
- }
85
- if (!processInstance['processStarted']) {
86
- processInstance.processStarted = processInstance.startTime;
87
- }
88
- if (!processInstance['processEnded']) {
89
- processInstance.processEnded = processInstance.endTime;
90
- }
91
- if (!processInstance['active']) {
92
- processInstance.active = processInstance.endTime == null;
93
- }
94
- return processInstance;
95
- };
96
- ProcessService.prototype.getInstancesStatistics = function (fromDate, toDate, processFilter) {
97
- var params = new i1.HttpParams();
98
- params.set('fromDate', fromDate);
99
- params.set('toDate', toDate);
100
- params.set('processFilter', processFilter);
101
- return this.http.get(this.valtimoEndpointUri + "reporting/instancesstatistics", { 'params': params });
102
- };
103
- ProcessService.prototype.deployProcess = function (processXml) {
104
- var formData = new FormData;
105
- formData.append('file', new File([processXml], 'process.bpmn'));
106
- formData.append('deployment-name', 'valtimoConsoleApp');
107
- formData.append('deployment-source', 'process application');
108
- return this.http.post(this.valtimoEndpointUri + "camunda-rest/engine/default/deployment/create", formData);
109
- };
110
- ProcessService.prototype.migrateProcess = function (processDefinition1Id, processDefinition2Id, params) {
111
- return this.http.post(this.valtimoEndpointUri + "process/definition/" + processDefinition1Id + "/" + processDefinition2Id + "/migrate", params);
112
- };
113
- return ProcessService;
114
- }());
115
- ProcessService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProcessService_Factory() { return new ProcessService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: ProcessService, providedIn: "root" });
116
- ProcessService.decorators = [
117
- { type: i0.Injectable, args: [{
118
- providedIn: 'root'
119
- },] }
120
- ];
121
- ProcessService.ctorParameters = function () { return [
122
- { type: i1.HttpClient },
123
- { type: i2.ConfigService }
7
+ /*
8
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
9
+ *
10
+ * Licensed under EUPL, Version 1.2 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" basis,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
22
+ var ProcessService = /** @class */ (function () {
23
+ function ProcessService(http, configService) {
24
+ this.http = http;
25
+ this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
26
+ }
27
+ ProcessService.prototype.getProcessDefinitions = function () {
28
+ return this.http.get(this.valtimoEndpointUri + "process/definition");
29
+ };
30
+ ProcessService.prototype.getProcessDefinitionVersions = function (key) {
31
+ return this.http.get(this.valtimoEndpointUri + "process/definition/" + key + "/versions");
32
+ };
33
+ ProcessService.prototype.getProcessDefinition = function (key) {
34
+ return this.http.get(this.valtimoEndpointUri + "process/definition/" + key);
35
+ };
36
+ ProcessService.prototype.getProcessDefinitionStartFormData = function (processDefinitionKey) {
37
+ return this.http.get(this.valtimoEndpointUri + "process/definition/" + processDefinitionKey + "/start-form");
38
+ };
39
+ ProcessService.prototype.startProcesInstance = function (key, businessKey, variables) {
40
+ return this.http.post(this.valtimoEndpointUri + "process/definition/" + key + "/" + businessKey + "/start", variables);
41
+ };
42
+ ProcessService.prototype.getProcessDefinitionXml = function (processDefinitionId) {
43
+ return this.http.get(this.valtimoEndpointUri + "process/definition/" + processDefinitionId + "/xml");
44
+ };
45
+ ProcessService.prototype.getProcessXml = function (id) {
46
+ return this.http.get(this.valtimoEndpointUri + "process/" + id + "/xml");
47
+ };
48
+ ProcessService.prototype.getProcessCount = function (id) {
49
+ return this.http.post(this.valtimoEndpointUri + "v2/process/definition/" + id + "/count", {
50
+ key: id,
51
+ processVariables: [{ '@type': 'boolean', name: 'active', value: true }],
52
+ });
53
+ };
54
+ ProcessService.prototype.getProcessHeatmapCount = function (processDefinition) {
55
+ return this.http.get(this.valtimoEndpointUri + "process/definition/" + processDefinition.key + "/heatmap/count?version=" + processDefinition.version);
56
+ };
57
+ ProcessService.prototype.getProcessHeatmapDuration = function (processDefinition) {
58
+ return this.http.get(this.valtimoEndpointUri + "process/definition/" + processDefinition.key + "/heatmap/duration?version=" + processDefinition.version);
59
+ };
60
+ ProcessService.prototype.getProcessInstances = function (key, page, size, sort) {
61
+ var params = new i1.HttpParams()
62
+ .set('page', page.toString())
63
+ .set('size', size.toString())
64
+ .set('sort', sort);
65
+ return this.http.post(this.valtimoEndpointUri + "v2/process/" + key + "/search", {}, { params: params });
66
+ };
67
+ ProcessService.prototype.getProcessInstance = function (processInstanceId) {
68
+ return this.http.get(this.valtimoEndpointUri + "process/" + processInstanceId, {});
69
+ };
70
+ ProcessService.prototype.getProcessInstanceTasks = function (id) {
71
+ return this.http.get(this.valtimoEndpointUri + "process/" + id + "/tasks", {});
72
+ };
73
+ ProcessService.prototype.getProcessInstanceVariables = function (id, variableNames) {
74
+ return this.http.post(this.valtimoEndpointUri + "process-instance/" + id + "/variables", variableNames);
75
+ };
76
+ ProcessService.prototype.addProcessInstancesDefaultVariablesValues = function (processInstances) {
77
+ var _this = this;
78
+ processInstances.forEach(function (processInstance) { return _this.addDefaultVariablesValues(processInstance); });
79
+ return processInstances;
80
+ };
81
+ ProcessService.prototype.addDefaultVariablesValues = function (processInstance) {
82
+ if (!processInstance['startUser']) {
83
+ processInstance.startUser = processInstance.startUserId;
84
+ }
85
+ if (!processInstance['processStarted']) {
86
+ processInstance.processStarted = processInstance.startTime;
87
+ }
88
+ if (!processInstance['processEnded']) {
89
+ processInstance.processEnded = processInstance.endTime;
90
+ }
91
+ if (!processInstance['active']) {
92
+ processInstance.active = processInstance.endTime == null;
93
+ }
94
+ return processInstance;
95
+ };
96
+ ProcessService.prototype.getInstancesStatistics = function (fromDate, toDate, processFilter) {
97
+ var params = new i1.HttpParams();
98
+ params.set('fromDate', fromDate);
99
+ params.set('toDate', toDate);
100
+ params.set('processFilter', processFilter);
101
+ return this.http.get(this.valtimoEndpointUri + "reporting/instancesstatistics", {
102
+ params: params,
103
+ });
104
+ };
105
+ ProcessService.prototype.deployProcess = function (processXml) {
106
+ var formData = new FormData();
107
+ formData.append('file', new File([processXml], 'process.bpmn'));
108
+ formData.append('deployment-name', 'valtimoConsoleApp');
109
+ formData.append('deployment-source', 'process application');
110
+ return this.http.post(this.valtimoEndpointUri + "camunda-rest/engine/default/deployment/create", formData);
111
+ };
112
+ ProcessService.prototype.migrateProcess = function (processDefinition1Id, processDefinition2Id, params) {
113
+ return this.http.post(this.valtimoEndpointUri + "process/definition/" + processDefinition1Id + "/" + processDefinition2Id + "/migrate", params);
114
+ };
115
+ return ProcessService;
116
+ }());
117
+ ProcessService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProcessService_Factory() { return new ProcessService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: ProcessService, providedIn: "root" });
118
+ ProcessService.decorators = [
119
+ { type: i0.Injectable, args: [{
120
+ providedIn: 'root',
121
+ },] }
122
+ ];
123
+ ProcessService.ctorParameters = function () { return [
124
+ { type: i1.HttpClient },
125
+ { type: i2.ConfigService }
124
126
  ]; };
125
127
 
126
- /*
127
- * Copyright 2015-2020 Ritense BV, the Netherlands.
128
- *
129
- * Licensed under EUPL, Version 1.2 (the "License");
130
- * you may not use this file except in compliance with the License.
131
- * You may obtain a copy of the License at
132
- *
133
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
134
- *
135
- * Unless required by applicable law or agreed to in writing, software
136
- * distributed under the License is distributed on an "AS IS" basis,
137
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
138
- * See the License for the specific language governing permissions and
139
- * limitations under the License.
140
- */
141
- var ProcessDiagramComponent = /** @class */ (function () {
142
- function ProcessDiagramComponent(processService) {
143
- this.processService = processService;
144
- this.importDone = new i0.EventEmitter();
145
- this.enumHeatmapOptions = ['count', 'duration'];
146
- }
147
- ProcessDiagramComponent.prototype.ngOnInit = function () {
148
- var _this = this;
149
- if (this.processDefinitionKey) {
150
- this.loadProcessDefinitionFromKey(this.processDefinitionKey);
151
- }
152
- if (this.processInstanceId) {
153
- this.loadProcessInstanceXml(this.processInstanceId);
154
- }
155
- this.bpmnJS = new BpmnJS();
156
- this.bpmnJS.on('import.done', function (_a) {
157
- var error = _a.error;
158
- if (!error) {
159
- var canvas_1 = _this.bpmnJS.get('canvas'), eventBus = _this.bpmnJS.get('eventBus');
160
- if (_this.processDiagram.historicActivityInstances) {
161
- _this.processDiagram.historicActivityInstances.forEach(function (instance) {
162
- // exclude multiInstanceBody
163
- if (instance.activityType !== 'multiInstanceBody') {
164
- canvas_1.addMarker(instance.activityId, instance.endTime ? 'highlight-overlay-past' : 'highlight-overlay-current');
165
- }
166
- });
167
- }
168
- canvas_1.zoom('fit-viewport', 'auto');
169
- if (_this.processDefinitionVersions) {
170
- eventBus.on('canvas.init', function () {
171
- if (_this.showHeatmap) {
172
- _this.clearHeatmap();
173
- }
174
- _this.loadHeatmapData();
175
- });
176
- eventBus.on('canvas.viewbox.changing', function () {
177
- if (_this.showHeatmap) {
178
- _this.clearHeatmap();
179
- }
180
- });
181
- eventBus.on('canvas.viewbox.changed', function () {
182
- _this.loadHeatmapData();
183
- });
184
- }
185
- }
186
- });
187
- };
188
- ProcessDiagramComponent.prototype.ngOnChanges = function () {
189
- if (this.processDefinitionKey) {
190
- this.loadProcessDefinitionFromKey(this.processDefinitionKey);
191
- }
192
- else if (this.processInstanceId) {
193
- this.loadProcessInstanceXml(this.processInstanceId);
194
- }
195
- };
196
- ProcessDiagramComponent.prototype.ngOnDestroy = function () {
197
- if (this.bpmnJS) {
198
- this.bpmnJS.destroy();
199
- }
200
- };
201
- ProcessDiagramComponent.prototype.loadProcessDefinition = function (processDefinitionKey) {
202
- var _this = this;
203
- this.processService.getProcessDefinition(processDefinitionKey).subscribe(function (response) {
204
- _this.heatmapOption = _this.enumHeatmapOptions[0];
205
- _this.version = response.version;
206
- _this.loadProcessDefinitionXml(response.id);
207
- });
208
- };
209
- ProcessDiagramComponent.prototype.loadProcessDefinitionVersions = function (processDefinitionKey) {
210
- var _this = this;
211
- this.processService.getProcessDefinitionVersions(processDefinitionKey).subscribe(function (response) {
212
- _this.processDefinitionVersions = response;
213
- });
214
- };
215
- ProcessDiagramComponent.prototype.loadProcessDefinitionFromKey = function (processDefinitionKey) {
216
- this.loadProcessDefinitionVersions(processDefinitionKey);
217
- this.loadProcessDefinition(processDefinitionKey);
218
- };
219
- ProcessDiagramComponent.prototype.loadProcessDefinitionXml = function (processDefinitionId) {
220
- var _this = this;
221
- this.processService.getProcessDefinitionXml(processDefinitionId).subscribe(function (response) {
222
- _this.processDiagram = response;
223
- _this.bpmnJS.importXML(_this.processDiagram.bpmn20Xml);
224
- _this.bpmnJS.attachTo(_this.el.nativeElement);
225
- });
226
- };
227
- ProcessDiagramComponent.prototype.loadProcessInstanceXml = function (processInstanceId) {
228
- var _this = this;
229
- this.processService.getProcessXml(processInstanceId).subscribe(function (response) {
230
- _this.processDiagram = response;
231
- _this.bpmnJS.importXML(_this.processDiagram.bpmn20Xml);
232
- _this.bpmnJS.attachTo(_this.el.nativeElement);
233
- });
234
- };
235
- ProcessDiagramComponent.prototype.loadProcessDefinitionHeatmapCount = function (processDefinition) {
236
- var _this = this;
237
- this.processService.getProcessHeatmapCount(processDefinition).subscribe(function (response) {
238
- _this.inputData = response;
239
- _this.valueKey = 'totalCount';
240
- _this.heatPoints = { data: [] };
241
- _this.min = 0;
242
- _this.max = 0;
243
- Object.keys(_this.inputData).forEach(function (key) {
244
- var diagramContainer = _this.el.nativeElement.querySelector('svg')
245
- .getBoundingClientRect(), diagramElm = _this.el.nativeElement.querySelector("g[data-element-id=" + key + "]")
246
- .getBoundingClientRect();
247
- _this.setMax(key);
248
- _this.heatPoints.data.push({
249
- x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),
250
- y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),
251
- value: _this.inputData[key][_this.valueKey],
252
- radius: diagramElm.width / 2
253
- });
254
- _this.addCounterActiveOverlays(key, _this.inputData);
255
- });
256
- _this.clearHeatmap();
257
- if (_this.showHeatmap) {
258
- _this.loadHeatmap();
259
- }
260
- });
261
- };
262
- ProcessDiagramComponent.prototype.onWindowResize = function () {
263
- var oldCanvas = this.el.nativeElement.querySelector('canvas[class=heatmap-canvas]');
264
- if (oldCanvas) {
265
- oldCanvas.remove();
266
- this.heatMapInstance = null;
267
- }
268
- if (this.showHeatmap) {
269
- this.loadHeatmap();
270
- }
271
- };
272
- ProcessDiagramComponent.prototype.loadProcessDefinitionHeatmapDuration = function (processDefinition) {
273
- var _this = this;
274
- this.processService.getProcessHeatmapDuration(processDefinition).subscribe(function (response) {
275
- _this.inputData = response;
276
- _this.valueKey = 'averageDurationInMilliseconds';
277
- _this.heatPoints = { data: [] };
278
- _this.min = 0;
279
- _this.max = 0;
280
- Object.keys(_this.inputData).forEach(function (key) {
281
- var diagramContainer = _this.el.nativeElement.querySelector('svg')
282
- .getBoundingClientRect(), diagramElm = _this.el.nativeElement.querySelector("g[data-element-id=" + key + "]")
283
- .getBoundingClientRect();
284
- _this.setMax(key);
285
- _this.heatPoints.data.push({
286
- x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),
287
- y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),
288
- value: _this.inputData[key][_this.valueKey],
289
- radius: diagramElm.width / 2
290
- });
291
- _this.addCounterActiveOverlays(key, _this.inputData);
292
- });
293
- _this.clearHeatmap();
294
- if (_this.showHeatmap) {
295
- _this.loadHeatmap();
296
- }
297
- });
298
- };
299
- ProcessDiagramComponent.prototype.setProcessDefinitionKey = function (processDefinitionKey) {
300
- this.processDefinitionKey = processDefinitionKey;
301
- this.loadProcessDefinitionFromKey(this.processDefinitionKey);
302
- };
303
- ProcessDiagramComponent.prototype.setProcessDefinitionVersion = function (version) {
304
- this.version = +version;
305
- this.loadHeatmapData();
306
- };
307
- ProcessDiagramComponent.prototype.setHeatmapOption = function (heatmapOption) {
308
- this.heatmapOption = heatmapOption;
309
- this.loadHeatmapData();
310
- };
311
- ProcessDiagramComponent.prototype.toggleShowHeatmap = function () {
312
- this.showHeatmap = !this.showHeatmap;
313
- this.loadHeatmapData();
314
- };
315
- ProcessDiagramComponent.prototype.loadHeatmap = function () {
316
- if (!this.heatMapInstance) {
317
- this.heatMapInstance = heatmap.create({
318
- radius: 54,
319
- blur: .70,
320
- maxOpacity: .4,
321
- minOpacity: 0,
322
- container: this.el.nativeElement
323
- });
324
- }
325
- this.heatMapInstance.setData({
326
- min: this.min,
327
- max: this.max,
328
- data: this.heatPoints.data
329
- });
330
- };
331
- ProcessDiagramComponent.prototype.clearHeatmap = function () {
332
- if (this.heatMapInstance) {
333
- this.heatMapInstance.setData({ data: [] });
334
- }
335
- };
336
- ProcessDiagramComponent.prototype.loadHeatmapData = function () {
337
- var _this = this;
338
- this.processDefinition = this.processDefinitionVersions.find(function (definition) { return definition.version === _this.version; });
339
- if (this.heatmapOption === 'count') {
340
- this.loadProcessDefinitionHeatmapCount(this.processDefinition);
341
- }
342
- if (this.heatmapOption === 'duration') {
343
- this.loadProcessDefinitionHeatmapDuration(this.processDefinition);
344
- }
345
- };
346
- ProcessDiagramComponent.prototype.setMax = function (key) {
347
- if (this.heatmapDuration) {
348
- this.max = Math.max(this.heatmapDuration[key].averageDurationInMilliseconds, this.max);
349
- }
350
- else if (this.heatmapCount) {
351
- this.max = Math.max(this.heatmapCount[key].totalCount + this.heatmapCount[key].count, this.max);
352
- }
353
- };
354
- ProcessDiagramComponent.prototype.addCounterActiveOverlays = function (key, inputData) {
355
- var overlays = this.bpmnJS.get('overlays');
356
- overlays.add(key, {
357
- position: {
358
- bottom: 13,
359
- left: -12
360
- },
361
- show: {
362
- minZoom: 0,
363
- maxZoom: 5.0
364
- },
365
- html: "<span class=\"badge badge-pill badge-primary\">" + inputData[key].count + "</span>"
366
- });
367
- };
368
- return ProcessDiagramComponent;
369
- }());
370
- ProcessDiagramComponent.decorators = [
371
- { type: i0.Component, args: [{
372
- selector: 'valtimo-process-diagram',
373
- template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n<div class=\"process-diagram-container\">\n <div *ngIf=\"processDefinitionKey\" class=\"diagram-container-switch-holder\" >\n <div class=\"container-fluid\">\n <div class=\"row p-4 bg-light\">\n <div class=\"col-4\">\n <label><strong>Version</strong></label><br />\n <select class=\"form-control\" (change)=\"setProcessDefinitionVersion($event.target.value)\">\n <option *ngFor=\"let processDefinitionVersion of processDefinitionVersions\"\n [value]=\"processDefinitionVersion.version\"\n [selected]=\"processDefinitionVersion.version === version\">\n {{ processDefinitionVersion.version }}\n </option>\n </select>\n </div>\n <div class=\"col-4\">\n <label><strong>Heatmap type</strong></label><br />\n <select class=\"form-control\" (change)=\"setHeatmapOption($event.target.value)\">\n <option *ngFor=\"let option of enumHeatmapOptions\"\n [value]=\"option\"\n [selected]=\"option === heatmapOption\" >\n {{ option }}\n </option>\n </select>\n </div>\n <div class=\"col-4 text-right\">\n <label><strong>Show heatmap</strong></label><br />\n <div class=\"text-left switch-button switch-button-sm switch-button-success\">\n <input type=\"checkbox\" id=\"toggleHeatmap\" [checked]=\"showHeatmap\" (click)=\"toggleShowHeatmap()\"><span>\n <label for=\"toggleHeatmap\"></label></span>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div #ref (window:resize)=\"onWindowResize()\" class=\"diagram-container\"></div>\n\n <div *ngIf=\"processInstanceId\" class=\"p-4 text-center legenda-holder\">\n <span><div class=\"legenda highlight-overlay-past\"></div> Executed tasks</span>\n <span class=\"ml-3\"><div class=\"legenda highlight-overlay-current\"></div> Current tasks</span>\n </div>\n\n <div *ngIf=\"processDefinitionKey\" class=\"p-4 text-center legenda-holder\">\n <span><span class=\"badge badge-pill badge-primary\">N</span>&nbsp;&nbsp;Amount of currently active instances of this task.</span>\n <span>&nbsp;&nbsp;|&nbsp;&nbsp;Red/yellow/green orbs: The amount of times the task is executed in comparison to the other tasks.</span>\n </div>\n</div>\n",
374
- encapsulation: i0.ViewEncapsulation.None,
375
- styles: [".process-diagram-container .diagram-container{height:50vh;width:100%}.process-diagram-container .diagram-container-switch-holder{position:absolute;width:100%;z-index:1000}.process-diagram-container .highlight-overlay-past:not(.djs-connection) .djs-visual>:first-child{fill:#d8d8d8!important}.process-diagram-container .highlight-overlay-current:not(.djs-connection) .djs-visual>:first-child{fill:#b2e0ff!important}.process-diagram-container .legenda-holder{font-size:1em}.process-diagram-container .legenda{border:2px solid #000;border-radius:3px;display:inline-block;margin-bottom:-4px;margin-right:5px;padding:7px}.process-diagram-container .legenda.highlight-overlay-past{background-color:#d8d8d8}.process-diagram-container .legenda.highlight-overlay-current{background-color:#b2e0ff}"]
376
- },] }
377
- ];
378
- ProcessDiagramComponent.ctorParameters = function () { return [
379
- { type: ProcessService }
380
- ]; };
381
- ProcessDiagramComponent.propDecorators = {
382
- el: [{ type: i0.ViewChild, args: ['ref', { static: true },] }],
383
- importDone: [{ type: i0.Output }],
384
- processDefinitionKey: [{ type: i0.Input }],
385
- processInstanceId: [{ type: i0.Input }]
128
+ /*
129
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
130
+ *
131
+ * Licensed under EUPL, Version 1.2 (the "License");
132
+ * you may not use this file except in compliance with the License.
133
+ * You may obtain a copy of the License at
134
+ *
135
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
136
+ *
137
+ * Unless required by applicable law or agreed to in writing, software
138
+ * distributed under the License is distributed on an "AS IS" basis,
139
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
140
+ * See the License for the specific language governing permissions and
141
+ * limitations under the License.
142
+ */
143
+ var ProcessDiagramComponent = /** @class */ (function () {
144
+ function ProcessDiagramComponent(processService) {
145
+ this.processService = processService;
146
+ this.importDone = new i0.EventEmitter();
147
+ this.enumHeatmapOptions = ['count', 'duration'];
148
+ }
149
+ ProcessDiagramComponent.prototype.ngOnInit = function () {
150
+ var _this = this;
151
+ if (this.processDefinitionKey) {
152
+ this.loadProcessDefinitionFromKey(this.processDefinitionKey);
153
+ }
154
+ if (this.processInstanceId) {
155
+ this.loadProcessInstanceXml(this.processInstanceId);
156
+ }
157
+ this.bpmnJS = new BpmnJS();
158
+ this.bpmnJS.on('import.done', function (_a) {
159
+ var error = _a.error;
160
+ if (!error) {
161
+ var canvas_1 = _this.bpmnJS.get('canvas'), eventBus = _this.bpmnJS.get('eventBus');
162
+ if (_this.processDiagram.historicActivityInstances) {
163
+ _this.processDiagram.historicActivityInstances.forEach(function (instance) {
164
+ // exclude multiInstanceBody
165
+ if (instance.activityType !== 'multiInstanceBody') {
166
+ canvas_1.addMarker(instance.activityId, instance.endTime ? 'highlight-overlay-past' : 'highlight-overlay-current');
167
+ }
168
+ });
169
+ }
170
+ canvas_1.zoom('fit-viewport', 'auto');
171
+ if (_this.processDefinitionVersions) {
172
+ eventBus.on('canvas.init', function () {
173
+ if (_this.showHeatmap) {
174
+ _this.clearHeatmap();
175
+ }
176
+ _this.loadHeatmapData();
177
+ });
178
+ eventBus.on('canvas.viewbox.changing', function () {
179
+ if (_this.showHeatmap) {
180
+ _this.clearHeatmap();
181
+ }
182
+ });
183
+ eventBus.on('canvas.viewbox.changed', function () {
184
+ _this.loadHeatmapData();
185
+ });
186
+ }
187
+ }
188
+ });
189
+ };
190
+ ProcessDiagramComponent.prototype.ngOnChanges = function () {
191
+ if (this.processDefinitionKey) {
192
+ this.loadProcessDefinitionFromKey(this.processDefinitionKey);
193
+ }
194
+ else if (this.processInstanceId) {
195
+ this.loadProcessInstanceXml(this.processInstanceId);
196
+ }
197
+ };
198
+ ProcessDiagramComponent.prototype.ngOnDestroy = function () {
199
+ if (this.bpmnJS) {
200
+ this.bpmnJS.destroy();
201
+ }
202
+ };
203
+ ProcessDiagramComponent.prototype.loadProcessDefinition = function (processDefinitionKey) {
204
+ var _this = this;
205
+ this.processService.getProcessDefinition(processDefinitionKey).subscribe(function (response) {
206
+ _this.heatmapOption = _this.enumHeatmapOptions[0];
207
+ _this.version = response.version;
208
+ _this.loadProcessDefinitionXml(response.id);
209
+ });
210
+ };
211
+ ProcessDiagramComponent.prototype.loadProcessDefinitionVersions = function (processDefinitionKey) {
212
+ var _this = this;
213
+ this.processService.getProcessDefinitionVersions(processDefinitionKey).subscribe(function (response) {
214
+ _this.processDefinitionVersions = response;
215
+ });
216
+ };
217
+ ProcessDiagramComponent.prototype.loadProcessDefinitionFromKey = function (processDefinitionKey) {
218
+ this.loadProcessDefinitionVersions(processDefinitionKey);
219
+ this.loadProcessDefinition(processDefinitionKey);
220
+ };
221
+ ProcessDiagramComponent.prototype.loadProcessDefinitionXml = function (processDefinitionId) {
222
+ var _this = this;
223
+ this.processService.getProcessDefinitionXml(processDefinitionId).subscribe(function (response) {
224
+ _this.processDiagram = response;
225
+ _this.bpmnJS.importXML(_this.processDiagram.bpmn20Xml);
226
+ _this.bpmnJS.attachTo(_this.el.nativeElement);
227
+ });
228
+ };
229
+ ProcessDiagramComponent.prototype.loadProcessInstanceXml = function (processInstanceId) {
230
+ var _this = this;
231
+ this.processService.getProcessXml(processInstanceId).subscribe(function (response) {
232
+ _this.processDiagram = response;
233
+ _this.bpmnJS.importXML(_this.processDiagram.bpmn20Xml);
234
+ _this.bpmnJS.attachTo(_this.el.nativeElement);
235
+ });
236
+ };
237
+ ProcessDiagramComponent.prototype.loadProcessDefinitionHeatmapCount = function (processDefinition) {
238
+ var _this = this;
239
+ this.processService.getProcessHeatmapCount(processDefinition).subscribe(function (response) {
240
+ _this.inputData = response;
241
+ _this.valueKey = 'totalCount';
242
+ _this.heatPoints = { data: [] };
243
+ _this.min = 0;
244
+ _this.max = 0;
245
+ Object.keys(_this.inputData).forEach(function (key) {
246
+ var diagramContainer = _this.el.nativeElement.querySelector('svg').getBoundingClientRect(), diagramElm = _this.el.nativeElement
247
+ .querySelector("g[data-element-id=" + key + "]")
248
+ .getBoundingClientRect();
249
+ _this.setMax(key);
250
+ _this.heatPoints.data.push({
251
+ x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),
252
+ y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),
253
+ value: _this.inputData[key][_this.valueKey],
254
+ radius: diagramElm.width / 2,
255
+ });
256
+ _this.addCounterActiveOverlays(key, _this.inputData);
257
+ });
258
+ _this.clearHeatmap();
259
+ if (_this.showHeatmap) {
260
+ _this.loadHeatmap();
261
+ }
262
+ });
263
+ };
264
+ ProcessDiagramComponent.prototype.onWindowResize = function () {
265
+ var oldCanvas = this.el.nativeElement.querySelector('canvas[class=heatmap-canvas]');
266
+ if (oldCanvas) {
267
+ oldCanvas.remove();
268
+ this.heatMapInstance = null;
269
+ }
270
+ if (this.showHeatmap) {
271
+ this.loadHeatmap();
272
+ }
273
+ };
274
+ ProcessDiagramComponent.prototype.loadProcessDefinitionHeatmapDuration = function (processDefinition) {
275
+ var _this = this;
276
+ this.processService.getProcessHeatmapDuration(processDefinition).subscribe(function (response) {
277
+ _this.inputData = response;
278
+ _this.valueKey = 'averageDurationInMilliseconds';
279
+ _this.heatPoints = { data: [] };
280
+ _this.min = 0;
281
+ _this.max = 0;
282
+ Object.keys(_this.inputData).forEach(function (key) {
283
+ var diagramContainer = _this.el.nativeElement.querySelector('svg').getBoundingClientRect(), diagramElm = _this.el.nativeElement
284
+ .querySelector("g[data-element-id=" + key + "]")
285
+ .getBoundingClientRect();
286
+ _this.setMax(key);
287
+ _this.heatPoints.data.push({
288
+ x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),
289
+ y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),
290
+ value: _this.inputData[key][_this.valueKey],
291
+ radius: diagramElm.width / 2,
292
+ });
293
+ _this.addCounterActiveOverlays(key, _this.inputData);
294
+ });
295
+ _this.clearHeatmap();
296
+ if (_this.showHeatmap) {
297
+ _this.loadHeatmap();
298
+ }
299
+ });
300
+ };
301
+ ProcessDiagramComponent.prototype.setProcessDefinitionKey = function (processDefinitionKey) {
302
+ this.processDefinitionKey = processDefinitionKey;
303
+ this.loadProcessDefinitionFromKey(this.processDefinitionKey);
304
+ };
305
+ ProcessDiagramComponent.prototype.setProcessDefinitionVersion = function (version) {
306
+ this.version = +version;
307
+ this.loadHeatmapData();
308
+ };
309
+ ProcessDiagramComponent.prototype.setHeatmapOption = function (heatmapOption) {
310
+ this.heatmapOption = heatmapOption;
311
+ this.loadHeatmapData();
312
+ };
313
+ ProcessDiagramComponent.prototype.toggleShowHeatmap = function () {
314
+ this.showHeatmap = !this.showHeatmap;
315
+ this.loadHeatmapData();
316
+ };
317
+ ProcessDiagramComponent.prototype.loadHeatmap = function () {
318
+ if (!this.heatMapInstance) {
319
+ this.heatMapInstance = heatmap.create({
320
+ radius: 54,
321
+ blur: 0.7,
322
+ maxOpacity: 0.4,
323
+ minOpacity: 0,
324
+ container: this.el.nativeElement,
325
+ });
326
+ }
327
+ this.heatMapInstance.setData({
328
+ min: this.min,
329
+ max: this.max,
330
+ data: this.heatPoints.data,
331
+ });
332
+ };
333
+ ProcessDiagramComponent.prototype.clearHeatmap = function () {
334
+ if (this.heatMapInstance) {
335
+ this.heatMapInstance.setData({ data: [] });
336
+ }
337
+ };
338
+ ProcessDiagramComponent.prototype.loadHeatmapData = function () {
339
+ var _this = this;
340
+ this.processDefinition = this.processDefinitionVersions.find(function (definition) { return definition.version === _this.version; });
341
+ if (this.heatmapOption === 'count') {
342
+ this.loadProcessDefinitionHeatmapCount(this.processDefinition);
343
+ }
344
+ if (this.heatmapOption === 'duration') {
345
+ this.loadProcessDefinitionHeatmapDuration(this.processDefinition);
346
+ }
347
+ };
348
+ ProcessDiagramComponent.prototype.setMax = function (key) {
349
+ if (this.heatmapDuration) {
350
+ this.max = Math.max(this.heatmapDuration[key].averageDurationInMilliseconds, this.max);
351
+ }
352
+ else if (this.heatmapCount) {
353
+ this.max = Math.max(this.heatmapCount[key].totalCount + this.heatmapCount[key].count, this.max);
354
+ }
355
+ };
356
+ ProcessDiagramComponent.prototype.addCounterActiveOverlays = function (key, inputData) {
357
+ var overlays = this.bpmnJS.get('overlays');
358
+ overlays.add(key, {
359
+ position: {
360
+ bottom: 13,
361
+ left: -12,
362
+ },
363
+ show: {
364
+ minZoom: 0,
365
+ maxZoom: 5.0,
366
+ },
367
+ html: "<span class=\"badge badge-pill badge-primary\">" + inputData[key].count + "</span>",
368
+ });
369
+ };
370
+ return ProcessDiagramComponent;
371
+ }());
372
+ ProcessDiagramComponent.decorators = [
373
+ { type: i0.Component, args: [{
374
+ selector: 'valtimo-process-diagram',
375
+ template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n<div class=\"process-diagram-container\">\n <div *ngIf=\"processDefinitionKey\" class=\"diagram-container-switch-holder\">\n <div class=\"container-fluid\">\n <div class=\"row p-4 bg-light\">\n <div class=\"col-4\">\n <label><strong>Version</strong></label\n ><br />\n <select class=\"form-control\" (change)=\"setProcessDefinitionVersion($event.target.value)\">\n <option\n *ngFor=\"let processDefinitionVersion of processDefinitionVersions\"\n [value]=\"processDefinitionVersion.version\"\n [selected]=\"processDefinitionVersion.version === version\"\n >\n {{ processDefinitionVersion.version }}\n </option>\n </select>\n </div>\n <div class=\"col-4\">\n <label><strong>Heatmap type</strong></label\n ><br />\n <select class=\"form-control\" (change)=\"setHeatmapOption($event.target.value)\">\n <option\n *ngFor=\"let option of enumHeatmapOptions\"\n [value]=\"option\"\n [selected]=\"option === heatmapOption\"\n >\n {{ option }}\n </option>\n </select>\n </div>\n <div class=\"col-4 text-right\">\n <label><strong>Show heatmap</strong></label\n ><br />\n <div class=\"text-left switch-button switch-button-sm switch-button-success\">\n <input\n type=\"checkbox\"\n id=\"toggleHeatmap\"\n [checked]=\"showHeatmap\"\n (click)=\"toggleShowHeatmap()\"\n /><span> <label for=\"toggleHeatmap\"></label></span>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div #ref (window:resize)=\"onWindowResize()\" class=\"diagram-container\"></div>\n\n <div *ngIf=\"processInstanceId\" class=\"p-4 text-center legenda-holder\">\n <span\n ><div class=\"legenda highlight-overlay-past\"></div>\n Executed tasks</span\n >\n <span class=\"ml-3\"\n ><div class=\"legenda highlight-overlay-current\"></div>\n Current tasks</span\n >\n </div>\n\n <div *ngIf=\"processDefinitionKey\" class=\"p-4 text-center legenda-holder\">\n <span\n ><span class=\"badge badge-pill badge-primary\">N</span>&nbsp;&nbsp;Amount of currently active\n instances of this task.</span\n >\n <span\n >&nbsp;&nbsp;|&nbsp;&nbsp;Red/yellow/green orbs: The amount of times the task is executed in\n comparison to the other tasks.</span\n >\n </div>\n</div>\n",
376
+ encapsulation: i0.ViewEncapsulation.None,
377
+ styles: [".process-diagram-container .diagram-container{height:50vh;width:100%}.process-diagram-container .diagram-container-switch-holder{position:absolute;width:100%;z-index:1000}.process-diagram-container .highlight-overlay-past:not(.djs-connection) .djs-visual>:first-child{fill:#d8d8d8!important}.process-diagram-container .highlight-overlay-current:not(.djs-connection) .djs-visual>:first-child{fill:#b2e0ff!important}.process-diagram-container .legenda-holder{font-size:1em}.process-diagram-container .legenda{border:2px solid #000;border-radius:3px;display:inline-block;margin-bottom:-4px;margin-right:5px;padding:7px}.process-diagram-container .legenda.highlight-overlay-past{background-color:#d8d8d8}.process-diagram-container .legenda.highlight-overlay-current{background-color:#b2e0ff}"]
378
+ },] }
379
+ ];
380
+ ProcessDiagramComponent.ctorParameters = function () { return [
381
+ { type: ProcessService }
382
+ ]; };
383
+ ProcessDiagramComponent.propDecorators = {
384
+ el: [{ type: i0.ViewChild, args: ['ref', { static: true },] }],
385
+ importDone: [{ type: i0.Output }],
386
+ processDefinitionKey: [{ type: i0.Input }],
387
+ processInstanceId: [{ type: i0.Input }]
386
388
  };
387
389
 
388
- /*
389
- * Copyright 2015-2020 Ritense BV, the Netherlands.
390
- *
391
- * Licensed under EUPL, Version 1.2 (the "License");
392
- * you may not use this file except in compliance with the License.
393
- * You may obtain a copy of the License at
394
- *
395
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
396
- *
397
- * Unless required by applicable law or agreed to in writing, software
398
- * distributed under the License is distributed on an "AS IS" basis,
399
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
400
- * See the License for the specific language governing permissions and
401
- * limitations under the License.
402
- */
403
- var ProcessModule = /** @class */ (function () {
404
- function ProcessModule() {
405
- }
406
- return ProcessModule;
407
- }());
408
- ProcessModule.decorators = [
409
- { type: i0.NgModule, args: [{
410
- declarations: [
411
- ProcessDiagramComponent
412
- ],
413
- imports: [
414
- common.CommonModule,
415
- components.ListModule,
416
- components.WidgetModule,
417
- components.TimelineModule,
418
- components.BpmnJsDiagramModule,
419
- components.CamundaFormModule,
420
- animations.BrowserAnimationsModule,
421
- ngxToastr.ToastrModule.forRoot({
422
- positionClass: 'toast-bottom-full-width',
423
- preventDuplicates: true
424
- })
425
- ],
426
- exports: [
427
- ProcessDiagramComponent
428
- ],
429
- },] }
390
+ /*
391
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
392
+ *
393
+ * Licensed under EUPL, Version 1.2 (the "License");
394
+ * you may not use this file except in compliance with the License.
395
+ * You may obtain a copy of the License at
396
+ *
397
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
398
+ *
399
+ * Unless required by applicable law or agreed to in writing, software
400
+ * distributed under the License is distributed on an "AS IS" basis,
401
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
402
+ * See the License for the specific language governing permissions and
403
+ * limitations under the License.
404
+ */
405
+ var ProcessModule = /** @class */ (function () {
406
+ function ProcessModule() {
407
+ }
408
+ return ProcessModule;
409
+ }());
410
+ ProcessModule.decorators = [
411
+ { type: i0.NgModule, args: [{
412
+ declarations: [ProcessDiagramComponent],
413
+ imports: [
414
+ common.CommonModule,
415
+ components.ListModule,
416
+ components.WidgetModule,
417
+ components.TimelineModule,
418
+ components.BpmnJsDiagramModule,
419
+ components.CamundaFormModule,
420
+ animations.BrowserAnimationsModule,
421
+ ngxToastr.ToastrModule.forRoot({
422
+ positionClass: 'toast-bottom-full-width',
423
+ preventDuplicates: true,
424
+ }),
425
+ ],
426
+ exports: [ProcessDiagramComponent],
427
+ },] }
430
428
  ];
431
429
 
432
- /*
433
- * Copyright 2015-2020 Ritense BV, the Netherlands.
434
- *
435
- * Licensed under EUPL, Version 1.2 (the "License");
436
- * you may not use this file except in compliance with the License.
437
- * You may obtain a copy of the License at
438
- *
439
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
440
- *
441
- * Unless required by applicable law or agreed to in writing, software
442
- * distributed under the License is distributed on an "AS IS" basis,
443
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
444
- * See the License for the specific language governing permissions and
445
- * limitations under the License.
430
+ /*
431
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
432
+ *
433
+ * Licensed under EUPL, Version 1.2 (the "License");
434
+ * you may not use this file except in compliance with the License.
435
+ * You may obtain a copy of the License at
436
+ *
437
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
438
+ *
439
+ * Unless required by applicable law or agreed to in writing, software
440
+ * distributed under the License is distributed on an "AS IS" basis,
441
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
442
+ * See the License for the specific language governing permissions and
443
+ * limitations under the License.
446
444
  */
447
445
 
448
- /**
449
- * Generated bundle index. Do not edit.
446
+ /**
447
+ * Generated bundle index. Do not edit.
450
448
  */
451
449
 
452
450
  exports.ProcessDiagramComponent = ProcessDiagramComponent;