@valtimo/process 4.15.2-next-main.8

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.
@@ -0,0 +1,442 @@
1
+ import { ɵɵdefineInjectable, ɵɵinject, Injectable, EventEmitter, Component, ViewEncapsulation, ViewChild, Output, Input, NgModule } from '@angular/core';
2
+ import { HttpParams, HttpClient } from '@angular/common/http';
3
+ import { ConfigService } from '@valtimo/config';
4
+ import { CommonModule } from '@angular/common';
5
+ import { ListModule, WidgetModule, TimelineModule, BpmnJsDiagramModule, CamundaFormModule } from '@valtimo/components';
6
+ import { ToastrModule } from 'ngx-toastr';
7
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
8
+ import * as BpmnJS from 'bpmn-js/dist/bpmn-navigated-viewer.production.min.js';
9
+ import { create } from 'heatmap.js-fixed/build/heatmap.js';
10
+
11
+ /*
12
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
13
+ *
14
+ * Licensed under EUPL, Version 1.2 (the "License");
15
+ * you may not use this file except in compliance with the License.
16
+ * You may obtain a copy of the License at
17
+ *
18
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
19
+ *
20
+ * Unless required by applicable law or agreed to in writing, software
21
+ * distributed under the License is distributed on an "AS IS" basis,
22
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23
+ * See the License for the specific language governing permissions and
24
+ * limitations under the License.
25
+ */
26
+ class ProcessService {
27
+ constructor(http, configService) {
28
+ this.http = http;
29
+ this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
30
+ }
31
+ getProcessDefinitions() {
32
+ return this.http.get(`${this.valtimoEndpointUri}process/definition`);
33
+ }
34
+ getProcessDefinitionVersions(key) {
35
+ return this.http.get(`${this.valtimoEndpointUri}process/definition/${key}/versions`);
36
+ }
37
+ getProcessDefinition(key) {
38
+ return this.http.get(`${this.valtimoEndpointUri}process/definition/${key}`);
39
+ }
40
+ getProcessDefinitionStartFormData(processDefinitionKey) {
41
+ return this.http.get(`${this.valtimoEndpointUri}process/definition/${processDefinitionKey}/start-form`);
42
+ }
43
+ startProcesInstance(key, businessKey, variables) {
44
+ return this.http.post(`${this.valtimoEndpointUri}process/definition/${key}/${businessKey}/start`, variables);
45
+ }
46
+ getProcessDefinitionXml(processDefinitionId) {
47
+ return this.http.get(`${this.valtimoEndpointUri}process/definition/${processDefinitionId}/xml`);
48
+ }
49
+ getProcessXml(id) {
50
+ return this.http.get(`${this.valtimoEndpointUri}process/${id}/xml`);
51
+ }
52
+ getProcessCount(id) {
53
+ return this.http.post(`${this.valtimoEndpointUri}v2/process/definition/${id}/count`, {
54
+ 'key': id,
55
+ 'processVariables': [{ '@type': 'boolean', 'name': 'active', 'value': true }]
56
+ });
57
+ }
58
+ getProcessHeatmapCount(processDefinition) {
59
+ return this.http.get(`${this.valtimoEndpointUri}process/definition/${processDefinition.key}/heatmap/count?version=${processDefinition.version}`);
60
+ }
61
+ getProcessHeatmapDuration(processDefinition) {
62
+ return this.http.get(`${this.valtimoEndpointUri}process/definition/${processDefinition.key}/heatmap/duration?version=${processDefinition.version}`);
63
+ }
64
+ getProcessInstances(key, page, size, sort) {
65
+ const params = new HttpParams()
66
+ .set('page', page.toString())
67
+ .set('size', size.toString())
68
+ .set('sort', sort);
69
+ return this.http.post(`${this.valtimoEndpointUri}v2/process/${key}/search`, {}, { 'params': params });
70
+ }
71
+ getProcessInstance(processInstanceId) {
72
+ return this.http.get(`${this.valtimoEndpointUri}process/${processInstanceId}`, {});
73
+ }
74
+ getProcessInstanceTasks(id) {
75
+ return this.http.get(`${this.valtimoEndpointUri}process/${id}/tasks`, {});
76
+ }
77
+ getProcessInstanceVariables(id, variableNames) {
78
+ return this.http.post(`${this.valtimoEndpointUri}process-instance/${id}/variables`, variableNames);
79
+ }
80
+ addProcessInstancesDefaultVariablesValues(processInstances) {
81
+ processInstances.forEach(processInstance => this.addDefaultVariablesValues(processInstance));
82
+ return processInstances;
83
+ }
84
+ addDefaultVariablesValues(processInstance) {
85
+ if (!processInstance['startUser']) {
86
+ processInstance.startUser = processInstance.startUserId;
87
+ }
88
+ if (!processInstance['processStarted']) {
89
+ processInstance.processStarted = processInstance.startTime;
90
+ }
91
+ if (!processInstance['processEnded']) {
92
+ processInstance.processEnded = processInstance.endTime;
93
+ }
94
+ if (!processInstance['active']) {
95
+ processInstance.active = processInstance.endTime == null;
96
+ }
97
+ return processInstance;
98
+ }
99
+ getInstancesStatistics(fromDate, toDate, processFilter) {
100
+ const params = new HttpParams();
101
+ params.set('fromDate', fromDate);
102
+ params.set('toDate', toDate);
103
+ params.set('processFilter', processFilter);
104
+ return this.http.get(`${this.valtimoEndpointUri}reporting/instancesstatistics`, { 'params': params });
105
+ }
106
+ deployProcess(processXml) {
107
+ const formData = new FormData;
108
+ formData.append('file', new File([processXml], 'process.bpmn'));
109
+ formData.append('deployment-name', 'valtimoConsoleApp');
110
+ formData.append('deployment-source', 'process application');
111
+ return this.http.post(`${this.valtimoEndpointUri}camunda-rest/engine/default/deployment/create`, formData);
112
+ }
113
+ migrateProcess(processDefinition1Id, processDefinition2Id, params) {
114
+ return this.http.post(`${this.valtimoEndpointUri}process/definition/${processDefinition1Id}/${processDefinition2Id}/migrate`, params);
115
+ }
116
+ }
117
+ ProcessService.ɵprov = ɵɵdefineInjectable({ factory: function ProcessService_Factory() { return new ProcessService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: ProcessService, providedIn: "root" });
118
+ ProcessService.decorators = [
119
+ { type: Injectable, args: [{
120
+ providedIn: 'root'
121
+ },] }
122
+ ];
123
+ ProcessService.ctorParameters = () => [
124
+ { type: HttpClient },
125
+ { type: ConfigService }
126
+ ];
127
+
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
+ class ProcessDiagramComponent {
144
+ constructor(processService) {
145
+ this.processService = processService;
146
+ this.importDone = new EventEmitter();
147
+ this.enumHeatmapOptions = ['count', 'duration'];
148
+ }
149
+ ngOnInit() {
150
+ if (this.processDefinitionKey) {
151
+ this.loadProcessDefinitionFromKey(this.processDefinitionKey);
152
+ }
153
+ if (this.processInstanceId) {
154
+ this.loadProcessInstanceXml(this.processInstanceId);
155
+ }
156
+ this.bpmnJS = new BpmnJS();
157
+ this.bpmnJS.on('import.done', ({ error }) => {
158
+ if (!error) {
159
+ const canvas = this.bpmnJS.get('canvas'), eventBus = this.bpmnJS.get('eventBus');
160
+ if (this.processDiagram.historicActivityInstances) {
161
+ this.processDiagram.historicActivityInstances.forEach(instance => {
162
+ // exclude multiInstanceBody
163
+ if (instance.activityType !== 'multiInstanceBody') {
164
+ canvas.addMarker(instance.activityId, instance.endTime ? 'highlight-overlay-past' : 'highlight-overlay-current');
165
+ }
166
+ });
167
+ }
168
+ canvas.zoom('fit-viewport', 'auto');
169
+ if (this.processDefinitionVersions) {
170
+ eventBus.on('canvas.init', () => {
171
+ if (this.showHeatmap) {
172
+ this.clearHeatmap();
173
+ }
174
+ this.loadHeatmapData();
175
+ });
176
+ eventBus.on('canvas.viewbox.changing', () => {
177
+ if (this.showHeatmap) {
178
+ this.clearHeatmap();
179
+ }
180
+ });
181
+ eventBus.on('canvas.viewbox.changed', () => {
182
+ this.loadHeatmapData();
183
+ });
184
+ }
185
+ }
186
+ });
187
+ }
188
+ ngOnChanges() {
189
+ if (this.processDefinitionKey) {
190
+ this.loadProcessDefinitionFromKey(this.processDefinitionKey);
191
+ }
192
+ else if (this.processInstanceId) {
193
+ this.loadProcessInstanceXml(this.processInstanceId);
194
+ }
195
+ }
196
+ ngOnDestroy() {
197
+ if (this.bpmnJS) {
198
+ this.bpmnJS.destroy();
199
+ }
200
+ }
201
+ loadProcessDefinition(processDefinitionKey) {
202
+ this.processService.getProcessDefinition(processDefinitionKey).subscribe(response => {
203
+ this.heatmapOption = this.enumHeatmapOptions[0];
204
+ this.version = response.version;
205
+ this.loadProcessDefinitionXml(response.id);
206
+ });
207
+ }
208
+ loadProcessDefinitionVersions(processDefinitionKey) {
209
+ this.processService.getProcessDefinitionVersions(processDefinitionKey).subscribe(response => {
210
+ this.processDefinitionVersions = response;
211
+ });
212
+ }
213
+ loadProcessDefinitionFromKey(processDefinitionKey) {
214
+ this.loadProcessDefinitionVersions(processDefinitionKey);
215
+ this.loadProcessDefinition(processDefinitionKey);
216
+ }
217
+ loadProcessDefinitionXml(processDefinitionId) {
218
+ this.processService.getProcessDefinitionXml(processDefinitionId).subscribe(response => {
219
+ this.processDiagram = response;
220
+ this.bpmnJS.importXML(this.processDiagram.bpmn20Xml);
221
+ this.bpmnJS.attachTo(this.el.nativeElement);
222
+ });
223
+ }
224
+ loadProcessInstanceXml(processInstanceId) {
225
+ this.processService.getProcessXml(processInstanceId).subscribe(response => {
226
+ this.processDiagram = response;
227
+ this.bpmnJS.importXML(this.processDiagram.bpmn20Xml);
228
+ this.bpmnJS.attachTo(this.el.nativeElement);
229
+ });
230
+ }
231
+ loadProcessDefinitionHeatmapCount(processDefinition) {
232
+ this.processService.getProcessHeatmapCount(processDefinition).subscribe(response => {
233
+ this.inputData = response;
234
+ this.valueKey = 'totalCount';
235
+ this.heatPoints = { data: [] };
236
+ this.min = 0;
237
+ this.max = 0;
238
+ Object.keys(this.inputData).forEach(key => {
239
+ const diagramContainer = this.el.nativeElement.querySelector('svg')
240
+ .getBoundingClientRect(), diagramElm = this.el.nativeElement.querySelector(`g[data-element-id=${key}]`)
241
+ .getBoundingClientRect();
242
+ this.setMax(key);
243
+ this.heatPoints.data.push({
244
+ x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),
245
+ y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),
246
+ value: this.inputData[key][this.valueKey],
247
+ radius: diagramElm.width / 2
248
+ });
249
+ this.addCounterActiveOverlays(key, this.inputData);
250
+ });
251
+ this.clearHeatmap();
252
+ if (this.showHeatmap) {
253
+ this.loadHeatmap();
254
+ }
255
+ });
256
+ }
257
+ onWindowResize() {
258
+ const oldCanvas = this.el.nativeElement.querySelector('canvas[class=heatmap-canvas]');
259
+ if (oldCanvas) {
260
+ oldCanvas.remove();
261
+ this.heatMapInstance = null;
262
+ }
263
+ if (this.showHeatmap) {
264
+ this.loadHeatmap();
265
+ }
266
+ }
267
+ loadProcessDefinitionHeatmapDuration(processDefinition) {
268
+ this.processService.getProcessHeatmapDuration(processDefinition).subscribe(response => {
269
+ this.inputData = response;
270
+ this.valueKey = 'averageDurationInMilliseconds';
271
+ this.heatPoints = { data: [] };
272
+ this.min = 0;
273
+ this.max = 0;
274
+ Object.keys(this.inputData).forEach(key => {
275
+ const diagramContainer = this.el.nativeElement.querySelector('svg')
276
+ .getBoundingClientRect(), diagramElm = this.el.nativeElement.querySelector(`g[data-element-id=${key}]`)
277
+ .getBoundingClientRect();
278
+ this.setMax(key);
279
+ this.heatPoints.data.push({
280
+ x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),
281
+ y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),
282
+ value: this.inputData[key][this.valueKey],
283
+ radius: diagramElm.width / 2
284
+ });
285
+ this.addCounterActiveOverlays(key, this.inputData);
286
+ });
287
+ this.clearHeatmap();
288
+ if (this.showHeatmap) {
289
+ this.loadHeatmap();
290
+ }
291
+ });
292
+ }
293
+ setProcessDefinitionKey(processDefinitionKey) {
294
+ this.processDefinitionKey = processDefinitionKey;
295
+ this.loadProcessDefinitionFromKey(this.processDefinitionKey);
296
+ }
297
+ setProcessDefinitionVersion(version) {
298
+ this.version = +version;
299
+ this.loadHeatmapData();
300
+ }
301
+ setHeatmapOption(heatmapOption) {
302
+ this.heatmapOption = heatmapOption;
303
+ this.loadHeatmapData();
304
+ }
305
+ toggleShowHeatmap() {
306
+ this.showHeatmap = !this.showHeatmap;
307
+ this.loadHeatmapData();
308
+ }
309
+ loadHeatmap() {
310
+ if (!this.heatMapInstance) {
311
+ this.heatMapInstance = create({
312
+ radius: 54,
313
+ blur: .70,
314
+ maxOpacity: .4,
315
+ minOpacity: 0,
316
+ container: this.el.nativeElement
317
+ });
318
+ }
319
+ this.heatMapInstance.setData({
320
+ min: this.min,
321
+ max: this.max,
322
+ data: this.heatPoints.data
323
+ });
324
+ }
325
+ clearHeatmap() {
326
+ if (this.heatMapInstance) {
327
+ this.heatMapInstance.setData({ data: [] });
328
+ }
329
+ }
330
+ loadHeatmapData() {
331
+ this.processDefinition = this.processDefinitionVersions.find(definition => definition.version === this.version);
332
+ if (this.heatmapOption === 'count') {
333
+ this.loadProcessDefinitionHeatmapCount(this.processDefinition);
334
+ }
335
+ if (this.heatmapOption === 'duration') {
336
+ this.loadProcessDefinitionHeatmapDuration(this.processDefinition);
337
+ }
338
+ }
339
+ setMax(key) {
340
+ if (this.heatmapDuration) {
341
+ this.max = Math.max(this.heatmapDuration[key].averageDurationInMilliseconds, this.max);
342
+ }
343
+ else if (this.heatmapCount) {
344
+ this.max = Math.max(this.heatmapCount[key].totalCount + this.heatmapCount[key].count, this.max);
345
+ }
346
+ }
347
+ addCounterActiveOverlays(key, inputData) {
348
+ const overlays = this.bpmnJS.get('overlays');
349
+ overlays.add(key, {
350
+ position: {
351
+ bottom: 13,
352
+ left: -12
353
+ },
354
+ show: {
355
+ minZoom: 0,
356
+ maxZoom: 5.0
357
+ },
358
+ html: `<span class="badge badge-pill badge-primary">${inputData[key].count}</span>`
359
+ });
360
+ }
361
+ }
362
+ ProcessDiagramComponent.decorators = [
363
+ { type: Component, args: [{
364
+ selector: 'valtimo-process-diagram',
365
+ 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",
366
+ encapsulation: ViewEncapsulation.None,
367
+ 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}"]
368
+ },] }
369
+ ];
370
+ ProcessDiagramComponent.ctorParameters = () => [
371
+ { type: ProcessService }
372
+ ];
373
+ ProcessDiagramComponent.propDecorators = {
374
+ el: [{ type: ViewChild, args: ['ref', { static: true },] }],
375
+ importDone: [{ type: Output }],
376
+ processDefinitionKey: [{ type: Input }],
377
+ processInstanceId: [{ type: Input }]
378
+ };
379
+
380
+ /*
381
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
382
+ *
383
+ * Licensed under EUPL, Version 1.2 (the "License");
384
+ * you may not use this file except in compliance with the License.
385
+ * You may obtain a copy of the License at
386
+ *
387
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
388
+ *
389
+ * Unless required by applicable law or agreed to in writing, software
390
+ * distributed under the License is distributed on an "AS IS" basis,
391
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
392
+ * See the License for the specific language governing permissions and
393
+ * limitations under the License.
394
+ */
395
+ class ProcessModule {
396
+ }
397
+ ProcessModule.decorators = [
398
+ { type: NgModule, args: [{
399
+ declarations: [
400
+ ProcessDiagramComponent
401
+ ],
402
+ imports: [
403
+ CommonModule,
404
+ ListModule,
405
+ WidgetModule,
406
+ TimelineModule,
407
+ BpmnJsDiagramModule,
408
+ CamundaFormModule,
409
+ BrowserAnimationsModule,
410
+ ToastrModule.forRoot({
411
+ positionClass: 'toast-bottom-full-width',
412
+ preventDuplicates: true
413
+ })
414
+ ],
415
+ exports: [
416
+ ProcessDiagramComponent
417
+ ],
418
+ },] }
419
+ ];
420
+
421
+ /*
422
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
423
+ *
424
+ * Licensed under EUPL, Version 1.2 (the "License");
425
+ * you may not use this file except in compliance with the License.
426
+ * You may obtain a copy of the License at
427
+ *
428
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
429
+ *
430
+ * Unless required by applicable law or agreed to in writing, software
431
+ * distributed under the License is distributed on an "AS IS" basis,
432
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
433
+ * See the License for the specific language governing permissions and
434
+ * limitations under the License.
435
+ */
436
+
437
+ /**
438
+ * Generated bundle index. Do not edit.
439
+ */
440
+
441
+ export { ProcessDiagramComponent, ProcessModule, ProcessService };
442
+ //# sourceMappingURL=valtimo-process.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-process.js","sources":["../../../../projects/valtimo/process/src/lib/process.service.ts","../../../../projects/valtimo/process/src/lib/process-diagram/process-diagram.component.ts","../../../../projects/valtimo/process/src/lib/process.module.ts","../../../../projects/valtimo/process/src/public_api.ts","../../../../projects/valtimo/process/src/valtimo-process.ts"],"sourcesContent":["/*\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\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {ProcessDefinition, ProcessDefinitionStartForm, ProcessInstance, ProcessInstanceTask, ProcessStart} from '@valtimo/contract';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ProcessService {\n private valtimoEndpointUri: string;\n\n constructor(\n private http: HttpClient,\n configService: ConfigService\n ) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n getProcessDefinitions(): Observable<ProcessDefinition[]> {\n return this.http.get<ProcessDefinition[]>(`${this.valtimoEndpointUri}process/definition`);\n }\n\n getProcessDefinitionVersions(key: string): Observable<ProcessDefinition[]> {\n return this.http.get<ProcessDefinition[]>(`${this.valtimoEndpointUri}process/definition/${key}/versions`);\n }\n\n getProcessDefinition(key: string): Observable<ProcessDefinition> {\n return this.http.get<ProcessDefinition>(`${this.valtimoEndpointUri}process/definition/${key}`);\n }\n\n getProcessDefinitionStartFormData(processDefinitionKey: string): Observable<ProcessDefinitionStartForm> {\n return this.http.get<ProcessDefinitionStartForm>(`${this.valtimoEndpointUri}process/definition/${processDefinitionKey}/start-form`);\n }\n\n startProcesInstance(key: string, businessKey: string, variables: Map<string, any>): Observable<any> {\n return this.http.post<ProcessStart>(\n `${this.valtimoEndpointUri}process/definition/${key}/${businessKey}/start`, variables\n );\n }\n\n getProcessDefinitionXml(processDefinitionId: string): Observable<any> {\n return this.http.get(`${this.valtimoEndpointUri}process/definition/${processDefinitionId}/xml`);\n }\n\n getProcessXml(id: string): Observable<any> {\n return this.http.get(`${this.valtimoEndpointUri}process/${id}/xml`);\n }\n\n getProcessCount(id: string): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}v2/process/definition/${id}/count`, {\n 'key': id,\n 'processVariables': [{'@type': 'boolean', 'name': 'active', 'value': true}]\n });\n }\n\n getProcessHeatmapCount(processDefinition: ProcessDefinition): Observable<any[]> {\n return this.http.get<any[]>(\n `${this.valtimoEndpointUri}process/definition/${processDefinition.key}/heatmap/count?version=${processDefinition.version}`\n );\n }\n\n getProcessHeatmapDuration(processDefinition: ProcessDefinition): Observable<any[]> {\n return this.http.get<any[]>(\n `${this.valtimoEndpointUri}process/definition/${processDefinition.key}/heatmap/duration?version=${processDefinition.version}`\n );\n }\n\n getProcessInstances(key: string, page: number, size: number, sort: string): Observable<any> {\n const params = new HttpParams()\n .set('page', page.toString())\n .set('size', size.toString())\n .set('sort', sort);\n\n return this.http.post<ProcessInstance>(`${this.valtimoEndpointUri}v2/process/${key}/search`, {}, {'params': params});\n }\n\n getProcessInstance(processInstanceId: string): Observable<ProcessInstance> {\n return this.http.get<ProcessInstance>(`${this.valtimoEndpointUri}process/${processInstanceId}`, {});\n }\n\n getProcessInstanceTasks(id: string): Observable<ProcessInstanceTask[]> {\n return this.http.get<ProcessInstanceTask[]>(`${this.valtimoEndpointUri}process/${id}/tasks`, {});\n }\n\n getProcessInstanceVariables(id: string, variableNames: Array<any>): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}process-instance/${id}/variables`, variableNames);\n }\n\n addProcessInstancesDefaultVariablesValues(processInstances: Array<any>) {\n processInstances.forEach(processInstance => this.addDefaultVariablesValues(processInstance));\n return processInstances;\n }\n\n addDefaultVariablesValues(processInstance: any) {\n if (!processInstance['startUser']) {\n processInstance.startUser = processInstance.startUserId;\n }\n if (!processInstance['processStarted']) {\n processInstance.processStarted = processInstance.startTime;\n }\n if (!processInstance['processEnded']) {\n processInstance.processEnded = processInstance.endTime;\n }\n if (!processInstance['active']) {\n processInstance.active = processInstance.endTime == null;\n }\n return processInstance;\n }\n\n getInstancesStatistics(fromDate?: string, toDate?: string, processFilter?: string) {\n const params = new HttpParams();\n params.set('fromDate', fromDate);\n params.set('toDate', toDate);\n params.set('processFilter', processFilter);\n return this.http.get<any[]>(\n `${this.valtimoEndpointUri}reporting/instancesstatistics`, {'params': params}\n );\n }\n\n deployProcess(processXml: string) {\n const formData = new FormData;\n formData.append('file', new File([processXml], 'process.bpmn'));\n formData.append('deployment-name', 'valtimoConsoleApp');\n formData.append('deployment-source', 'process application');\n return this.http.post(`${this.valtimoEndpointUri}camunda-rest/engine/default/deployment/create`, formData);\n }\n\n migrateProcess(processDefinition1Id: string, processDefinition2Id: string, params: any): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}process/definition/${processDefinition1Id}/${processDefinition2Id}/migrate`, params);\n }\n\n}\n","/*\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\nimport {\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {ProcessService} from '../process.service';\n\nimport * as BpmnJS from 'bpmn-js/dist/bpmn-navigated-viewer.production.min.js';\nimport * as heatmap from 'heatmap.js-fixed/build/heatmap.js';\n\n@Component({\n selector: 'valtimo-process-diagram',\n templateUrl: './process-diagram.component.html',\n styleUrls: ['./process-diagram.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class ProcessDiagramComponent implements OnInit, OnDestroy, OnChanges {\n\n private bpmnJS: BpmnJS;\n private heatMapInstance: any;\n\n @ViewChild('ref', { static: true }) public el: ElementRef;\n @Output() public importDone: EventEmitter<any> = new EventEmitter();\n @Input() public processDefinitionKey?: string;\n @Input() public processInstanceId?: string;\n\n public processDiagram: any;\n public processDefinition: any;\n public processDefinitionVersions: any;\n public heatmapCount: any;\n public heatmapDuration: any;\n public tasksCount: any;\n public showHeatmap: boolean;\n public enumHeatmapOptions = ['count', 'duration'];\n public heatmapOption: string;\n public version: any;\n public heatPoints: any;\n public min: number;\n public max: number;\n public inputData: any;\n public valueKey: any;\n\n constructor(\n private processService: ProcessService,\n ) { }\n\n ngOnInit() {\n if (this.processDefinitionKey) {\n this.loadProcessDefinitionFromKey(this.processDefinitionKey);\n }\n if (this.processInstanceId) {\n this.loadProcessInstanceXml(this.processInstanceId);\n }\n this.bpmnJS = new BpmnJS();\n this.bpmnJS.on('import.done', ({error}) => {\n if (!error) {\n const canvas = this.bpmnJS.get('canvas')\n , eventBus = this.bpmnJS.get('eventBus');\n if (this.processDiagram.historicActivityInstances) {\n this.processDiagram.historicActivityInstances.forEach(instance => {\n // exclude multiInstanceBody\n if (instance.activityType !== 'multiInstanceBody') {\n canvas.addMarker(instance.activityId, instance.endTime ? 'highlight-overlay-past' : 'highlight-overlay-current');\n }\n });\n }\n\n canvas.zoom('fit-viewport', 'auto');\n if (this.processDefinitionVersions) {\n eventBus.on('canvas.init', () => {\n if (this.showHeatmap) {\n this.clearHeatmap();\n }\n this.loadHeatmapData();\n });\n eventBus.on('canvas.viewbox.changing', () => {\n if (this.showHeatmap) {\n this.clearHeatmap();\n }\n });\n eventBus.on('canvas.viewbox.changed', () => {\n this.loadHeatmapData();\n });\n }\n }\n });\n }\n\n ngOnChanges(): void {\n if (this.processDefinitionKey) {\n this.loadProcessDefinitionFromKey(this.processDefinitionKey);\n } else if (this.processInstanceId) {\n this.loadProcessInstanceXml(this.processInstanceId);\n }\n }\n\n ngOnDestroy() {\n if (this.bpmnJS) {\n this.bpmnJS.destroy();\n }\n }\n\n public loadProcessDefinition(processDefinitionKey) {\n this.processService.getProcessDefinition(processDefinitionKey).subscribe(response => {\n this.heatmapOption = this.enumHeatmapOptions[0];\n this.version = response.version;\n this.loadProcessDefinitionXml(response.id);\n });\n }\n\n public loadProcessDefinitionVersions(processDefinitionKey) {\n this.processService.getProcessDefinitionVersions(processDefinitionKey).subscribe(response => {\n this.processDefinitionVersions = response;\n });\n }\n\n public loadProcessDefinitionFromKey(processDefinitionKey) {\n this.loadProcessDefinitionVersions(processDefinitionKey);\n this.loadProcessDefinition(processDefinitionKey);\n }\n\n public loadProcessDefinitionXml(processDefinitionId) {\n this.processService.getProcessDefinitionXml(processDefinitionId).subscribe(response => {\n this.processDiagram = response;\n this.bpmnJS.importXML(this.processDiagram.bpmn20Xml);\n this.bpmnJS.attachTo(this.el.nativeElement);\n });\n }\n\n private loadProcessInstanceXml(processInstanceId) {\n this.processService.getProcessXml(processInstanceId).subscribe(response => {\n this.processDiagram = response;\n this.bpmnJS.importXML(this.processDiagram.bpmn20Xml);\n this.bpmnJS.attachTo(this.el.nativeElement);\n });\n }\n\n public loadProcessDefinitionHeatmapCount(processDefinition) {\n this.processService.getProcessHeatmapCount(processDefinition).subscribe(response => {\n this.inputData = response;\n this.valueKey = 'totalCount';\n this.heatPoints = {data: []};\n this.min = 0;\n this.max = 0;\n\n Object.keys(this.inputData).forEach(key => {\n const diagramContainer = this.el.nativeElement.querySelector('svg')\n .getBoundingClientRect(),\n diagramElm = this.el.nativeElement.querySelector(`g[data-element-id=${key}]`)\n .getBoundingClientRect();\n this.setMax(key);\n this.heatPoints.data.push({\n x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),\n y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),\n value: this.inputData[key][this.valueKey],\n radius: diagramElm.width / 2\n });\n this.addCounterActiveOverlays(key, this.inputData);\n\n });\n this.clearHeatmap();\n if (this.showHeatmap) {\n this.loadHeatmap();\n }\n });\n }\n\n public onWindowResize() {\n const oldCanvas = this.el.nativeElement.querySelector('canvas[class=heatmap-canvas]');\n if (oldCanvas) {\n oldCanvas.remove();\n this.heatMapInstance = null;\n }\n if (this.showHeatmap) {\n this.loadHeatmap();\n }\n }\n\n public loadProcessDefinitionHeatmapDuration(processDefinition) {\n this.processService.getProcessHeatmapDuration(processDefinition).subscribe(response => {\n this.inputData = response;\n this.valueKey = 'averageDurationInMilliseconds';\n this.heatPoints = {data: []};\n this.min = 0;\n this.max = 0;\n\n Object.keys(this.inputData).forEach(key => {\n const diagramContainer = this.el.nativeElement.querySelector('svg')\n .getBoundingClientRect(),\n diagramElm = this.el.nativeElement.querySelector(`g[data-element-id=${key}]`)\n .getBoundingClientRect();\n this.setMax(key);\n this.heatPoints.data.push({\n x: Math.round(diagramElm.x - diagramContainer.x + diagramElm.width / 2),\n y: Math.round(diagramElm.y - diagramContainer.y + diagramElm.height / 2),\n value: this.inputData[key][this.valueKey],\n radius: diagramElm.width / 2\n });\n this.addCounterActiveOverlays(key, this.inputData);\n });\n this.clearHeatmap();\n if (this.showHeatmap) {\n this.loadHeatmap();\n }\n });\n }\n\n public setProcessDefinitionKey(processDefinitionKey) {\n this.processDefinitionKey = processDefinitionKey;\n this.loadProcessDefinitionFromKey(this.processDefinitionKey);\n }\n\n public setProcessDefinitionVersion(version) {\n this.version = +version;\n this.loadHeatmapData();\n }\n\n public setHeatmapOption(heatmapOption) {\n this.heatmapOption = heatmapOption;\n this.loadHeatmapData();\n }\n\n public toggleShowHeatmap() {\n this.showHeatmap = !this.showHeatmap;\n this.loadHeatmapData();\n }\n\n public loadHeatmap() {\n if (!this.heatMapInstance) {\n this.heatMapInstance = heatmap.create({\n radius: 54,\n blur: .70,\n maxOpacity: .4,\n minOpacity: 0,\n container: this.el.nativeElement\n });\n }\n this.heatMapInstance.setData({\n min: this.min,\n max: this.max,\n data: this.heatPoints.data\n });\n }\n\n public clearHeatmap() {\n if (this.heatMapInstance) {\n this.heatMapInstance.setData({data: []});\n }\n }\n\n public loadHeatmapData() {\n this.processDefinition = this.processDefinitionVersions.find(definition => definition.version === this.version);\n\n if (this.heatmapOption === 'count') {\n this.loadProcessDefinitionHeatmapCount(this.processDefinition);\n }\n if (this.heatmapOption === 'duration') {\n this.loadProcessDefinitionHeatmapDuration(this.processDefinition);\n }\n }\n\n public setMax(key: any) {\n if (this.heatmapDuration) {\n this.max = Math.max(this.heatmapDuration[key].averageDurationInMilliseconds, this.max);\n } else if (this.heatmapCount) {\n this.max = Math.max(this.heatmapCount[key].totalCount + this.heatmapCount[key].count, this.max);\n }\n }\n\n public addCounterActiveOverlays(key: any, inputData: any) {\n const overlays = this.bpmnJS.get('overlays');\n overlays.add(key, {\n position: {\n bottom: 13,\n left: -12\n },\n show: {\n minZoom: 0,\n maxZoom: 5.0\n },\n html: `<span class=\"badge badge-pill badge-primary\">${inputData[key].count}</span>`\n });\n }\n\n}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {BpmnJsDiagramModule, CamundaFormModule, ListModule, TimelineModule, WidgetModule} from '@valtimo/components';\nimport {ToastrModule} from 'ngx-toastr';\nimport {BrowserAnimationsModule} from '@angular/platform-browser/animations';\nimport {ProcessDiagramComponent} from './process-diagram/process-diagram.component';\n\n@NgModule({\n declarations: [\n ProcessDiagramComponent\n ],\n imports: [\n CommonModule,\n ListModule,\n WidgetModule,\n TimelineModule,\n BpmnJsDiagramModule,\n CamundaFormModule,\n BrowserAnimationsModule,\n ToastrModule.forRoot({\n positionClass: 'toast-bottom-full-width',\n preventDuplicates: true\n })\n ],\n exports: [\n ProcessDiagramComponent\n ],\n})\n\nexport class ProcessModule {\n\n}\n","/*\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\n/*\n * Public API Surface of process\n */\n\nexport * from './lib/process.service';\nexport * from './lib/process.module';\nexport * from './lib/process-diagram/process-diagram.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["heatmap.create"],"mappings":";;;;;;;;;;AAAA;;;;;;;;;;;;;;;MAyBa,cAAc;IAGzB,YACU,IAAgB,EACxB,aAA4B;QADpB,SAAI,GAAJ,IAAI,CAAY;QAGxB,IAAI,CAAC,kBAAkB,GAAG,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC;KACvE;IAED,qBAAqB;QACnB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAsB,GAAG,IAAI,CAAC,kBAAkB,oBAAoB,CAAC,CAAC;KAC3F;IAED,4BAA4B,CAAC,GAAW;QACtC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAsB,GAAG,IAAI,CAAC,kBAAkB,sBAAsB,GAAG,WAAW,CAAC,CAAC;KAC3G;IAED,oBAAoB,CAAC,GAAW;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAoB,GAAG,IAAI,CAAC,kBAAkB,sBAAsB,GAAG,EAAE,CAAC,CAAC;KAChG;IAED,iCAAiC,CAAC,oBAA4B;QAC5D,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA6B,GAAG,IAAI,CAAC,kBAAkB,sBAAsB,oBAAoB,aAAa,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,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC7C,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE;YAChB,QAAQ,EAAE;gBACR,MAAM,EAAE,EAAE;gBACV,IAAI,EAAE,CAAC,EAAE;aACV;YACD,IAAI,EAAE;gBACJ,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,GAAG;aACb;YACD,IAAI,EAAE,gDAAgD,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,SAAS;SACpF,CAAC,CAAC;KACJ;;;YAhRF,SAAS,SAAC;gBACT,QAAQ,EAAE,yBAAyB;gBACnC,u+FAA+C;gBAE/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;;aACtC;;;YAVO,cAAc;;;iBAgBnB,SAAS,SAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;yBACjC,MAAM;mCACN,KAAK;gCACL,KAAK;;;AC/CR;;;;;;;;;;;;;;;MA6Ca,aAAa;;;YAtBzB,QAAQ,SAAC;gBACR,YAAY,EAAE;oBACZ,uBAAuB;iBACxB;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,UAAU;oBACV,YAAY;oBACZ,cAAc;oBACd,mBAAmB;oBACnB,iBAAiB;oBACjB,uBAAuB;oBACvB,YAAY,CAAC,OAAO,CAAC;wBACnB,aAAa,EAAE,yBAAyB;wBACxC,iBAAiB,EAAE,IAAI;qBACxB,CAAC;iBACH;gBACD,OAAO,EAAE;oBACP,uBAAuB;iBACxB;aACF;;;AC3CD;;;;;;;;;;;;;;;;ACAA;;;;;;"}
@@ -0,0 +1,47 @@
1
+ import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
2
+ import { ProcessService } from '../process.service';
3
+ export declare class ProcessDiagramComponent implements OnInit, OnDestroy, OnChanges {
4
+ private processService;
5
+ private bpmnJS;
6
+ private heatMapInstance;
7
+ el: ElementRef;
8
+ importDone: EventEmitter<any>;
9
+ processDefinitionKey?: string;
10
+ processInstanceId?: string;
11
+ processDiagram: any;
12
+ processDefinition: any;
13
+ processDefinitionVersions: any;
14
+ heatmapCount: any;
15
+ heatmapDuration: any;
16
+ tasksCount: any;
17
+ showHeatmap: boolean;
18
+ enumHeatmapOptions: string[];
19
+ heatmapOption: string;
20
+ version: any;
21
+ heatPoints: any;
22
+ min: number;
23
+ max: number;
24
+ inputData: any;
25
+ valueKey: any;
26
+ constructor(processService: ProcessService);
27
+ ngOnInit(): void;
28
+ ngOnChanges(): void;
29
+ ngOnDestroy(): void;
30
+ loadProcessDefinition(processDefinitionKey: any): void;
31
+ loadProcessDefinitionVersions(processDefinitionKey: any): void;
32
+ loadProcessDefinitionFromKey(processDefinitionKey: any): void;
33
+ loadProcessDefinitionXml(processDefinitionId: any): void;
34
+ private loadProcessInstanceXml;
35
+ loadProcessDefinitionHeatmapCount(processDefinition: any): void;
36
+ onWindowResize(): void;
37
+ loadProcessDefinitionHeatmapDuration(processDefinition: any): void;
38
+ setProcessDefinitionKey(processDefinitionKey: any): void;
39
+ setProcessDefinitionVersion(version: any): void;
40
+ setHeatmapOption(heatmapOption: any): void;
41
+ toggleShowHeatmap(): void;
42
+ loadHeatmap(): void;
43
+ clearHeatmap(): void;
44
+ loadHeatmapData(): void;
45
+ setMax(key: any): void;
46
+ addCounterActiveOverlays(key: any, inputData: any): void;
47
+ }
@@ -0,0 +1,2 @@
1
+ export declare class ProcessModule {
2
+ }
@@ -0,0 +1,28 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { ProcessDefinition, ProcessDefinitionStartForm, ProcessInstance, ProcessInstanceTask } from '@valtimo/contract';
4
+ import { ConfigService } from '@valtimo/config';
5
+ export declare class ProcessService {
6
+ private http;
7
+ private valtimoEndpointUri;
8
+ constructor(http: HttpClient, configService: ConfigService);
9
+ getProcessDefinitions(): Observable<ProcessDefinition[]>;
10
+ getProcessDefinitionVersions(key: string): Observable<ProcessDefinition[]>;
11
+ getProcessDefinition(key: string): Observable<ProcessDefinition>;
12
+ getProcessDefinitionStartFormData(processDefinitionKey: string): Observable<ProcessDefinitionStartForm>;
13
+ startProcesInstance(key: string, businessKey: string, variables: Map<string, any>): Observable<any>;
14
+ getProcessDefinitionXml(processDefinitionId: string): Observable<any>;
15
+ getProcessXml(id: string): Observable<any>;
16
+ getProcessCount(id: string): Observable<any>;
17
+ getProcessHeatmapCount(processDefinition: ProcessDefinition): Observable<any[]>;
18
+ getProcessHeatmapDuration(processDefinition: ProcessDefinition): Observable<any[]>;
19
+ getProcessInstances(key: string, page: number, size: number, sort: string): Observable<any>;
20
+ getProcessInstance(processInstanceId: string): Observable<ProcessInstance>;
21
+ getProcessInstanceTasks(id: string): Observable<ProcessInstanceTask[]>;
22
+ getProcessInstanceVariables(id: string, variableNames: Array<any>): Observable<any>;
23
+ addProcessInstancesDefaultVariablesValues(processInstances: Array<any>): any[];
24
+ addDefaultVariablesValues(processInstance: any): any;
25
+ getInstancesStatistics(fromDate?: string, toDate?: string, processFilter?: string): Observable<any[]>;
26
+ deployProcess(processXml: string): Observable<Object>;
27
+ migrateProcess(processDefinition1Id: string, processDefinition2Id: string, params: any): Observable<any>;
28
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@valtimo/process",
3
+ "version": "4.15.2-next-main.8",
4
+ "publishConfig": {
5
+ "registry": "http://repo.ritense.com/repository/npm-ritense-private/"
6
+ },
7
+ "peerDependencies": {
8
+ "@angular/common": "^10.0.11",
9
+ "@angular/core": "^10.0.11"
10
+ },
11
+ "dependencies": {
12
+ "ngx-toastr": "^13.0.0",
13
+ "moment": "2.24.0",
14
+ "bpmn-js": "^6.4.2",
15
+ "jquery": "3.4.1",
16
+ "heatmap.js-fixed": "^2.0.2",
17
+ "tslib": "^2.0.0"
18
+ },
19
+ "main": "bundles/valtimo-process.umd.js",
20
+ "module": "fesm2015/valtimo-process.js",
21
+ "es2015": "fesm2015/valtimo-process.js",
22
+ "esm2015": "esm2015/valtimo-process.js",
23
+ "fesm2015": "fesm2015/valtimo-process.js",
24
+ "typings": "valtimo-process.d.ts",
25
+ "metadata": "valtimo-process.metadata.json",
26
+ "sideEffects": false
27
+ }
@@ -0,0 +1,3 @@
1
+ export * from './lib/process.service';
2
+ export * from './lib/process.module';
3
+ export * from './lib/process-diagram/process-diagram.component';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public_api';