@5minds/node-red-contrib-processcube 0.14.0-feature-7cec87-lyytfjz9 → 0.14.0-fix-error-in-process-instance-query-9aeac9-lyzi0gix

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/.prettierrc.json +6 -0
  2. package/Dockerfile +1 -1
  3. package/docker-compose.yml +0 -12
  4. package/externaltask-error.html +12 -26
  5. package/externaltask-error.js +20 -19
  6. package/externaltask-input.html +14 -31
  7. package/externaltask-input.js +55 -107
  8. package/externaltask-output.html +10 -20
  9. package/externaltask-output.js +11 -12
  10. package/message-event-trigger.html +14 -14
  11. package/message-event-trigger.js +21 -25
  12. package/nodered/node-red-contrib-processcube-flows.json +132 -216
  13. package/nodered/package.json +0 -1
  14. package/nodered/settings.js +82 -92
  15. package/package.json +9 -3
  16. package/process-start.html +19 -23
  17. package/process-start.js +18 -18
  18. package/processcube-engine-config.html +10 -10
  19. package/processcube-engine-config.js +22 -30
  20. package/processdefinition-query.html +29 -23
  21. package/processdefinition-query.js +12 -16
  22. package/processes/CheckError.bpmn +78 -0
  23. package/processes/NodeRedExternalTask.bpmn +77 -0
  24. package/processes/SampleUserTask.bpmn +95 -0
  25. package/processinstance-query.html +19 -20
  26. package/processinstance-query.js +17 -12
  27. package/signal-event-trigger.html +14 -14
  28. package/signal-event-trigger.js +21 -25
  29. package/usertask-finished-listener.html +17 -12
  30. package/usertask-finished-listener.js +34 -16
  31. package/usertask-input.html +40 -27
  32. package/usertask-input.js +19 -18
  33. package/usertask-new-listener.html +17 -12
  34. package/usertask-new-listener.js +35 -18
  35. package/usertask-output.html +23 -24
  36. package/usertask-output.js +12 -12
  37. package/examples/External-Task-Sample.json +0 -252
  38. package/processes/External-Task-Sample.bpmn +0 -94
@@ -1,252 +0,0 @@
1
- [
2
- {
3
- "id": "a23d2e782beb66f4",
4
- "type": "tab",
5
- "label": "External Task Sample",
6
- "disabled": false,
7
- "info": "",
8
- "env": []
9
- },
10
- {
11
- "id": "70d7a70e375b162a",
12
- "type": "group",
13
- "z": "a23d2e782beb66f4",
14
- "style": {
15
- "stroke": "#999999",
16
- "stroke-opacity": "1",
17
- "fill": "none",
18
- "fill-opacity": "1",
19
- "label": true,
20
- "label-position": "nw",
21
- "color": "#a4a4a4"
22
- },
23
- "nodes": [
24
- "2991a5e6df2b87d2",
25
- "911fde53bcbb7e3f",
26
- "d56bb7cd73fd220c",
27
- "15a5f64b9e2e05fc"
28
- ],
29
- "x": 34,
30
- "y": 79,
31
- "w": 512,
32
- "h": 142
33
- },
34
- {
35
- "id": "31cb6729aac0ba46",
36
- "type": "group",
37
- "z": "a23d2e782beb66f4",
38
- "style": {
39
- "stroke": "#999999",
40
- "stroke-opacity": "1",
41
- "fill": "none",
42
- "fill-opacity": "1",
43
- "label": true,
44
- "label-position": "nw",
45
- "color": "#a4a4a4"
46
- },
47
- "nodes": [
48
- "18e05d562d48f32d",
49
- "49aee03a7885fae8",
50
- "e4555d9019cd3f47",
51
- "bd68c4bdc53b8f80",
52
- "fb87f79852b22e4a",
53
- "1ba1e62c9935255f",
54
- "b49f226ba865e164"
55
- ],
56
- "x": 34,
57
- "y": 259,
58
- "w": 812,
59
- "h": 202
60
- },
61
- {
62
- "id": "2991a5e6df2b87d2",
63
- "type": "externaltask-input",
64
- "z": "a23d2e782beb66f4",
65
- "g": "70d7a70e375b162a",
66
- "name": "Test",
67
- "engine": "42e6796dddd9d4db",
68
- "topic": "Test",
69
- "x": 110,
70
- "y": 180,
71
- "wires": [
72
- [
73
- "d56bb7cd73fd220c"
74
- ]
75
- ]
76
- },
77
- {
78
- "id": "911fde53bcbb7e3f",
79
- "type": "externaltask-output",
80
- "z": "a23d2e782beb66f4",
81
- "g": "70d7a70e375b162a",
82
- "name": "Test Ende",
83
- "x": 460,
84
- "y": 180,
85
- "wires": []
86
- },
87
- {
88
- "id": "d56bb7cd73fd220c",
89
- "type": "delay",
90
- "z": "a23d2e782beb66f4",
91
- "g": "70d7a70e375b162a",
92
- "name": "",
93
- "pauseType": "delay",
94
- "timeout": "1",
95
- "timeoutUnits": "seconds",
96
- "rate": "1",
97
- "nbRateUnits": "1",
98
- "rateUnits": "second",
99
- "randomFirst": "1",
100
- "randomLast": "5",
101
- "randomUnits": "seconds",
102
- "drop": false,
103
- "allowrate": false,
104
- "outputs": 1,
105
- "x": 280,
106
- "y": 180,
107
- "wires": [
108
- [
109
- "911fde53bcbb7e3f"
110
- ]
111
- ]
112
- },
113
- {
114
- "id": "18e05d562d48f32d",
115
- "type": "externaltask-input",
116
- "z": "a23d2e782beb66f4",
117
- "g": "31cb6729aac0ba46",
118
- "name": "SampleError",
119
- "engine": "42e6796dddd9d4db",
120
- "topic": "SampleError",
121
- "x": 130,
122
- "y": 360,
123
- "wires": [
124
- [
125
- "49aee03a7885fae8"
126
- ]
127
- ]
128
- },
129
- {
130
- "id": "49aee03a7885fae8",
131
- "type": "delay",
132
- "z": "a23d2e782beb66f4",
133
- "g": "31cb6729aac0ba46",
134
- "name": "",
135
- "pauseType": "delay",
136
- "timeout": "5",
137
- "timeoutUnits": "seconds",
138
- "rate": "1",
139
- "nbRateUnits": "1",
140
- "rateUnits": "second",
141
- "randomFirst": "1",
142
- "randomLast": "5",
143
- "randomUnits": "seconds",
144
- "drop": false,
145
- "allowrate": false,
146
- "outputs": 1,
147
- "x": 320,
148
- "y": 360,
149
- "wires": [
150
- [
151
- "bd68c4bdc53b8f80"
152
- ]
153
- ]
154
- },
155
- {
156
- "id": "e4555d9019cd3f47",
157
- "type": "catch",
158
- "z": "a23d2e782beb66f4",
159
- "g": "31cb6729aac0ba46",
160
- "name": "",
161
- "scope": "group",
162
- "uncaught": false,
163
- "x": 510,
164
- "y": 420,
165
- "wires": [
166
- [
167
- "fb87f79852b22e4a"
168
- ]
169
- ]
170
- },
171
- {
172
- "id": "bd68c4bdc53b8f80",
173
- "type": "function",
174
- "z": "a23d2e782beb66f4",
175
- "g": "31cb6729aac0ba46",
176
- "name": "raise Error",
177
- "func": "throw Error(\"hello error\");\n\nreturn msg;",
178
- "outputs": 1,
179
- "timeout": 0,
180
- "noerr": 0,
181
- "initialize": "",
182
- "finalize": "",
183
- "libs": [],
184
- "x": 510,
185
- "y": 360,
186
- "wires": [
187
- [
188
- "1ba1e62c9935255f"
189
- ]
190
- ]
191
- },
192
- {
193
- "id": "fb87f79852b22e4a",
194
- "type": "externaltask-error",
195
- "z": "a23d2e782beb66f4",
196
- "g": "31cb6729aac0ba46",
197
- "name": "Send Error to Engine",
198
- "error": "MyErrorCode",
199
- "x": 720,
200
- "y": 420,
201
- "wires": [
202
- []
203
- ]
204
- },
205
- {
206
- "id": "1ba1e62c9935255f",
207
- "type": "externaltask-output",
208
- "z": "a23d2e782beb66f4",
209
- "g": "31cb6729aac0ba46",
210
- "name": "",
211
- "x": 710,
212
- "y": 360,
213
- "wires": []
214
- },
215
- {
216
- "id": "15a5f64b9e2e05fc",
217
- "type": "comment",
218
- "z": "a23d2e782beb66f4",
219
- "g": "70d7a70e375b162a",
220
- "name": "Simple External Task handling",
221
- "info": "",
222
- "x": 180,
223
- "y": 120,
224
- "wires": []
225
- },
226
- {
227
- "id": "b49f226ba865e164",
228
- "type": "comment",
229
- "z": "a23d2e782beb66f4",
230
- "g": "31cb6729aac0ba46",
231
- "name": "Error handling with external tasks",
232
- "info": "",
233
- "x": 190,
234
- "y": 300,
235
- "wires": []
236
- },
237
- {
238
- "id": "799125e21de02f13",
239
- "type": "comment",
240
- "z": "a23d2e782beb66f4",
241
- "name": "For Testing, deploy \"External-Task-Sample.bpmn\" and start the process.",
242
- "info": "",
243
- "x": 300,
244
- "y": 40,
245
- "wires": []
246
- },
247
- {
248
- "id": "42e6796dddd9d4db",
249
- "type": "processcube-engine-config",
250
- "url": "http://engine:8000"
251
- }
252
- ]
@@ -1,94 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="External-Task-Sample_Definition" targetNamespace="http://bpmn.io/schema/bpmn" exporter="5Minds Studio" exporterVersion="1">
3
- <bpmn:collaboration id="Collaboration_1cidyxu" name="">
4
- <bpmn:participant id="Participant_0px403d" name="External-Task-Sample" processRef="External-Task-Sample_Process" />
5
- <bpmn:textAnnotation id="TextAnnotation_0lbjt7p">
6
- <bpmn:text>Will be executed at the boundary event</bpmn:text>
7
- </bpmn:textAnnotation>
8
- <bpmn:association id="Association_0ivfgz1" associationDirection="None" sourceRef="Activity_0ma3kzt" targetRef="TextAnnotation_0lbjt7p" />
9
- </bpmn:collaboration>
10
- <bpmn:process id="External-Task-Sample_Process" name="External-Task-Sample" isExecutable="true">
11
- <bpmn:laneSet />
12
- <bpmn:startEvent id="StartEvent_1" name="Start">
13
- <bpmn:outgoing>Flow_0qmxzxk</bpmn:outgoing>
14
- </bpmn:startEvent>
15
- <bpmn:sequenceFlow id="Flow_0qmxzxk" sourceRef="StartEvent_1" targetRef="Activity_02ykwt2" />
16
- <bpmn:sequenceFlow id="Flow_16dfeac" sourceRef="Activity_02ykwt2" targetRef="Activity_0ma3kzt" />
17
- <bpmn:endEvent id="Event_05wpeos">
18
- <bpmn:incoming>Flow_0mo4oek</bpmn:incoming>
19
- </bpmn:endEvent>
20
- <bpmn:sequenceFlow id="Flow_0mo4oek" sourceRef="Activity_0ma3kzt" targetRef="Event_05wpeos" />
21
- <bpmn:endEvent id="Event_0yn9mzh">
22
- <bpmn:incoming>Flow_0y6es1p</bpmn:incoming>
23
- </bpmn:endEvent>
24
- <bpmn:sequenceFlow id="Flow_0y6es1p" sourceRef="Event_0o7qlkd" targetRef="Event_0yn9mzh" />
25
- <bpmn:serviceTask id="Activity_02ykwt2" name="Topic &#34;Test&#34;" camunda:type="external" camunda:topic="Test">
26
- <bpmn:incoming>Flow_0qmxzxk</bpmn:incoming>
27
- <bpmn:outgoing>Flow_16dfeac</bpmn:outgoing>
28
- </bpmn:serviceTask>
29
- <bpmn:serviceTask id="Activity_0ma3kzt" name="Topic &#34;SampleError&#34;" camunda:type="external" camunda:topic="SampleError">
30
- <bpmn:incoming>Flow_16dfeac</bpmn:incoming>
31
- <bpmn:outgoing>Flow_0mo4oek</bpmn:outgoing>
32
- </bpmn:serviceTask>
33
- <bpmn:boundaryEvent id="Event_0o7qlkd" attachedToRef="Activity_0ma3kzt">
34
- <bpmn:outgoing>Flow_0y6es1p</bpmn:outgoing>
35
- <bpmn:errorEventDefinition id="ErrorEventDefinition_1lr8fha" errorRef="Error_3O8wBFQi" />
36
- </bpmn:boundaryEvent>
37
- </bpmn:process>
38
- <bpmn:error id="Error_3O8wBFQi" errorCode="MyErrorCode" />
39
- <bpmndi:BPMNDiagram id="BPMNDiagram_1">
40
- <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1cidyxu">
41
- <bpmndi:BPMNShape id="Participant_0px403d_di" bpmnElement="Participant_0px403d" isHorizontal="true">
42
- <dc:Bounds x="5" y="30" width="635" height="320" />
43
- </bpmndi:BPMNShape>
44
- <bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1">
45
- <dc:Bounds x="92" y="152" width="36" height="36" />
46
- <bpmndi:BPMNLabel>
47
- <dc:Bounds x="98" y="195" width="24" height="14" />
48
- </bpmndi:BPMNLabel>
49
- </bpmndi:BPMNShape>
50
- <bpmndi:BPMNShape id="Event_05wpeos_di" bpmnElement="Event_05wpeos">
51
- <dc:Bounds x="502" y="152" width="36" height="36" />
52
- </bpmndi:BPMNShape>
53
- <bpmndi:BPMNShape id="Event_0yn9mzh_di" bpmnElement="Event_0yn9mzh">
54
- <dc:Bounds x="482" y="272" width="36" height="36" />
55
- </bpmndi:BPMNShape>
56
- <bpmndi:BPMNShape id="Activity_1vxcs04_di" bpmnElement="Activity_02ykwt2">
57
- <dc:Bounds x="180" y="130" width="100" height="80" />
58
- <bpmndi:BPMNLabel />
59
- </bpmndi:BPMNShape>
60
- <bpmndi:BPMNShape id="Activity_1b7fiqp_di" bpmnElement="Activity_0ma3kzt">
61
- <dc:Bounds x="340" y="130" width="100" height="80" />
62
- <bpmndi:BPMNLabel />
63
- </bpmndi:BPMNShape>
64
- <bpmndi:BPMNShape id="Event_134k5nt_di" bpmnElement="Event_0o7qlkd">
65
- <dc:Bounds x="392" y="192" width="36" height="36" />
66
- </bpmndi:BPMNShape>
67
- <bpmndi:BPMNEdge id="Flow_0qmxzxk_di" bpmnElement="Flow_0qmxzxk">
68
- <di:waypoint x="128" y="170" />
69
- <di:waypoint x="180" y="170" />
70
- </bpmndi:BPMNEdge>
71
- <bpmndi:BPMNEdge id="Flow_16dfeac_di" bpmnElement="Flow_16dfeac">
72
- <di:waypoint x="280" y="170" />
73
- <di:waypoint x="340" y="170" />
74
- </bpmndi:BPMNEdge>
75
- <bpmndi:BPMNEdge id="Flow_0mo4oek_di" bpmnElement="Flow_0mo4oek">
76
- <di:waypoint x="440" y="170" />
77
- <di:waypoint x="502" y="170" />
78
- </bpmndi:BPMNEdge>
79
- <bpmndi:BPMNEdge id="Flow_0y6es1p_di" bpmnElement="Flow_0y6es1p">
80
- <di:waypoint x="410" y="228" />
81
- <di:waypoint x="410" y="290" />
82
- <di:waypoint x="482" y="290" />
83
- </bpmndi:BPMNEdge>
84
- <bpmndi:BPMNShape id="TextAnnotation_0lbjt7p_di" bpmnElement="TextAnnotation_0lbjt7p">
85
- <dc:Bounds x="370" y="50" width="169.99387960829492" height="39.99855990783411" />
86
- <bpmndi:BPMNLabel />
87
- </bpmndi:BPMNShape>
88
- <bpmndi:BPMNEdge id="Association_0ivfgz1_di" bpmnElement="Association_0ivfgz1">
89
- <di:waypoint x="401" y="130" />
90
- <di:waypoint x="413" y="90" />
91
- </bpmndi:BPMNEdge>
92
- </bpmndi:BPMNPlane>
93
- </bpmndi:BPMNDiagram>
94
- </bpmn:definitions>