@5minds/node-red-contrib-processcube 0.14.0-feature-ebe375-lyxawl6i → 0.14.0-feature-e63691-lyxhylt5
Sign up to get free protection for your applications and to get access to all the features.
- package/examples/External-Task-Sample.json +252 -0
- package/externaltask-error.js +2 -5
- package/externaltask-input.js +8 -19
- package/nodered/node-red-contrib-processcube-flows.json +40 -155
- package/package.json +1 -1
- package/processes/External-Task-Sample.bpmn +94 -0
- package/processes/CheckError.bpmn +0 -78
- package/processes/NodeRedExternalTask.bpmn +0 -77
- package/processes/SampleUserTask.bpmn +0 -95
@@ -0,0 +1,252 @@
|
|
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
|
+
]
|
package/externaltask-error.js
CHANGED
@@ -21,13 +21,10 @@ module.exports = function(RED) {
|
|
21
21
|
//msg.errorDetails = RED.util.encodeObject(msg); // circular structure
|
22
22
|
|
23
23
|
const error = new Error(msg.errorMessage);
|
24
|
-
error.errorCode =
|
25
|
-
error.errorDetails = RED.util.encodeObject(msg);
|
24
|
+
error.errorCode = config.error;
|
26
25
|
|
27
26
|
// TODO: hack cause https://github.com/5minds/ProcessCube.Engine.Client.ts/blob/develop/src/ExternalTaskWorker.ts#L180
|
28
|
-
error.stack =
|
29
|
-
error.externalTaskId = externalTaskId;
|
30
|
-
error._msgid = msg._msgid;
|
27
|
+
error.stack = RED.util.encodeObject(msg);
|
31
28
|
|
32
29
|
eventEmitter.emit(`handle-${externalTaskId}`, error, true);
|
33
30
|
|
package/externaltask-input.js
CHANGED
@@ -1,13 +1,10 @@
|
|
1
|
-
const process = require('process');
|
2
1
|
const EventEmitter = require('node:events');
|
3
2
|
|
4
|
-
const engine_client = require('@5minds/processcube_engine_client');
|
5
|
-
|
6
3
|
function showStatus(node, msgCounter) {
|
7
4
|
if (msgCounter >= 1) {
|
8
|
-
node.status({fill: "blue", shape: "dot", text: `handling tasks ${msgCounter}
|
5
|
+
node.status({fill: "blue", shape: "dot", text: `handling tasks ${msgCounter}.`});
|
9
6
|
} else {
|
10
|
-
node.status({fill: "blue", shape: "ring", text: `subcribed
|
7
|
+
node.status({fill: "blue", shape: "ring", text: `subcribed.`});
|
11
8
|
}
|
12
9
|
}
|
13
10
|
|
@@ -18,18 +15,10 @@ module.exports = function(RED) {
|
|
18
15
|
RED.nodes.createNode(this,config);
|
19
16
|
var node = this;
|
20
17
|
var flowContext = node.context().flow;
|
21
|
-
|
22
|
-
|
18
|
+
|
23
19
|
this.engine = this.server = RED.nodes.getNode(config.engine);
|
24
20
|
|
25
|
-
const
|
26
|
-
|
27
|
-
var client = nodeContext.get('client');
|
28
|
-
|
29
|
-
if (!client) {
|
30
|
-
nodeContext.set('client', new engine_client.EngineClient(engineUrl));
|
31
|
-
client = nodeContext.get('client');
|
32
|
-
}
|
21
|
+
const client = this.engine.getEngineClient();
|
33
22
|
|
34
23
|
var eventEmitter = flowContext.get('emitter');
|
35
24
|
|
@@ -49,8 +38,8 @@ module.exports = function(RED) {
|
|
49
38
|
|
50
39
|
node.log(`handle event for external task ${externalTask.flowNodeInstanceId} and process it with result ${result} on msg._msgid ${msg._msgid}.`);
|
51
40
|
|
52
|
-
if (
|
53
|
-
delete started_external_tasks[
|
41
|
+
if (externalTask.flowNodeInstanceId) {
|
42
|
+
delete started_external_tasks[externalTask.flowNodeInstanceId];
|
54
43
|
}
|
55
44
|
|
56
45
|
showStatus(node, Object.keys(started_external_tasks).length);
|
@@ -63,8 +52,8 @@ module.exports = function(RED) {
|
|
63
52
|
|
64
53
|
node.log(`handle error event for external task ${externalTask.flowNodeInstanceId} with result ${msg} on msg._msgid ${msg._msgid}.`);
|
65
54
|
|
66
|
-
if (
|
67
|
-
delete started_external_tasks[
|
55
|
+
if (externalTask.flowNodeInstanceId) {
|
56
|
+
delete started_external_tasks[externalTask.flowNodeInstanceId];
|
68
57
|
}
|
69
58
|
|
70
59
|
showStatus(node, Object.keys(started_external_tasks).length);
|
@@ -2,7 +2,7 @@
|
|
2
2
|
{
|
3
3
|
"id": "a23d2e782beb66f4",
|
4
4
|
"type": "tab",
|
5
|
-
"label": "
|
5
|
+
"label": "External Task Sample",
|
6
6
|
"disabled": false,
|
7
7
|
"info": "",
|
8
8
|
"env": []
|
@@ -96,14 +96,12 @@
|
|
96
96
|
"2991a5e6df2b87d2",
|
97
97
|
"911fde53bcbb7e3f",
|
98
98
|
"d56bb7cd73fd220c",
|
99
|
-
"75c7bb5cc34e354a",
|
100
|
-
"69aec57d8bb00292",
|
101
99
|
"15a5f64b9e2e05fc"
|
102
100
|
],
|
103
101
|
"x": 34,
|
104
|
-
"y":
|
105
|
-
"w":
|
106
|
-
"h":
|
102
|
+
"y": 79,
|
103
|
+
"w": 512,
|
104
|
+
"h": 142
|
107
105
|
},
|
108
106
|
{
|
109
107
|
"id": "31cb6729aac0ba46",
|
@@ -123,16 +121,14 @@
|
|
123
121
|
"49aee03a7885fae8",
|
124
122
|
"e4555d9019cd3f47",
|
125
123
|
"bd68c4bdc53b8f80",
|
126
|
-
"fa1c26d470c38efd",
|
127
|
-
"019797b5a0882e7b",
|
128
124
|
"fb87f79852b22e4a",
|
129
125
|
"1ba1e62c9935255f",
|
130
126
|
"b49f226ba865e164"
|
131
127
|
],
|
132
128
|
"x": 34,
|
133
|
-
"y":
|
134
|
-
"w":
|
135
|
-
"h":
|
129
|
+
"y": 259,
|
130
|
+
"w": 812,
|
131
|
+
"h": 202
|
136
132
|
},
|
137
133
|
{
|
138
134
|
"id": "42e6796dddd9d4db",
|
@@ -148,11 +144,10 @@
|
|
148
144
|
"engine": "42e6796dddd9d4db",
|
149
145
|
"topic": "Test",
|
150
146
|
"x": 110,
|
151
|
-
"y":
|
147
|
+
"y": 180,
|
152
148
|
"wires": [
|
153
149
|
[
|
154
|
-
"d56bb7cd73fd220c"
|
155
|
-
"75c7bb5cc34e354a"
|
150
|
+
"d56bb7cd73fd220c"
|
156
151
|
]
|
157
152
|
]
|
158
153
|
},
|
@@ -162,8 +157,8 @@
|
|
162
157
|
"z": "a23d2e782beb66f4",
|
163
158
|
"g": "70d7a70e375b162a",
|
164
159
|
"name": "Test Ende",
|
165
|
-
"x":
|
166
|
-
"y":
|
160
|
+
"x": 460,
|
161
|
+
"y": 180,
|
167
162
|
"wires": []
|
168
163
|
},
|
169
164
|
{
|
@@ -184,50 +179,14 @@
|
|
184
179
|
"drop": false,
|
185
180
|
"allowrate": false,
|
186
181
|
"outputs": 1,
|
187
|
-
"x":
|
188
|
-
"y":
|
182
|
+
"x": 280,
|
183
|
+
"y": 180,
|
189
184
|
"wires": [
|
190
185
|
[
|
191
|
-
"911fde53bcbb7e3f"
|
192
|
-
"69aec57d8bb00292"
|
186
|
+
"911fde53bcbb7e3f"
|
193
187
|
]
|
194
188
|
]
|
195
189
|
},
|
196
|
-
{
|
197
|
-
"id": "75c7bb5cc34e354a",
|
198
|
-
"type": "debug",
|
199
|
-
"z": "a23d2e782beb66f4",
|
200
|
-
"g": "70d7a70e375b162a",
|
201
|
-
"name": "debug 1",
|
202
|
-
"active": true,
|
203
|
-
"tosidebar": true,
|
204
|
-
"console": false,
|
205
|
-
"tostatus": false,
|
206
|
-
"complete": "false",
|
207
|
-
"statusVal": "",
|
208
|
-
"statusType": "auto",
|
209
|
-
"x": 280,
|
210
|
-
"y": 200,
|
211
|
-
"wires": []
|
212
|
-
},
|
213
|
-
{
|
214
|
-
"id": "69aec57d8bb00292",
|
215
|
-
"type": "debug",
|
216
|
-
"z": "a23d2e782beb66f4",
|
217
|
-
"g": "70d7a70e375b162a",
|
218
|
-
"name": "debug 6",
|
219
|
-
"active": true,
|
220
|
-
"tosidebar": true,
|
221
|
-
"console": false,
|
222
|
-
"tostatus": false,
|
223
|
-
"complete": "externalTaskId",
|
224
|
-
"targetType": "msg",
|
225
|
-
"statusVal": "",
|
226
|
-
"statusType": "auto",
|
227
|
-
"x": 500,
|
228
|
-
"y": 200,
|
229
|
-
"wires": []
|
230
|
-
},
|
231
190
|
{
|
232
191
|
"id": "18e05d562d48f32d",
|
233
192
|
"type": "externaltask-input",
|
@@ -237,7 +196,7 @@
|
|
237
196
|
"engine": "42e6796dddd9d4db",
|
238
197
|
"topic": "SampleError",
|
239
198
|
"x": 130,
|
240
|
-
"y":
|
199
|
+
"y": 360,
|
241
200
|
"wires": [
|
242
201
|
[
|
243
202
|
"49aee03a7885fae8"
|
@@ -262,8 +221,8 @@
|
|
262
221
|
"drop": false,
|
263
222
|
"allowrate": false,
|
264
223
|
"outputs": 1,
|
265
|
-
"x":
|
266
|
-
"y":
|
224
|
+
"x": 320,
|
225
|
+
"y": 360,
|
267
226
|
"wires": [
|
268
227
|
[
|
269
228
|
"bd68c4bdc53b8f80"
|
@@ -276,14 +235,12 @@
|
|
276
235
|
"z": "a23d2e782beb66f4",
|
277
236
|
"g": "31cb6729aac0ba46",
|
278
237
|
"name": "",
|
279
|
-
"scope":
|
238
|
+
"scope": "group",
|
280
239
|
"uncaught": false,
|
281
|
-
"x":
|
282
|
-
"y":
|
240
|
+
"x": 510,
|
241
|
+
"y": 420,
|
283
242
|
"wires": [
|
284
243
|
[
|
285
|
-
"fa1c26d470c38efd",
|
286
|
-
"019797b5a0882e7b",
|
287
244
|
"fb87f79852b22e4a"
|
288
245
|
]
|
289
246
|
]
|
@@ -293,7 +250,7 @@
|
|
293
250
|
"type": "function",
|
294
251
|
"z": "a23d2e782beb66f4",
|
295
252
|
"g": "31cb6729aac0ba46",
|
296
|
-
"name": "
|
253
|
+
"name": "raise Error",
|
297
254
|
"func": "throw Error(\"hello error\");\n\nreturn msg;",
|
298
255
|
"outputs": 1,
|
299
256
|
"timeout": 0,
|
@@ -301,58 +258,23 @@
|
|
301
258
|
"initialize": "",
|
302
259
|
"finalize": "",
|
303
260
|
"libs": [],
|
304
|
-
"x":
|
305
|
-
"y":
|
261
|
+
"x": 510,
|
262
|
+
"y": 360,
|
306
263
|
"wires": [
|
307
264
|
[
|
308
265
|
"1ba1e62c9935255f"
|
309
266
|
]
|
310
267
|
]
|
311
268
|
},
|
312
|
-
{
|
313
|
-
"id": "fa1c26d470c38efd",
|
314
|
-
"type": "debug",
|
315
|
-
"z": "a23d2e782beb66f4",
|
316
|
-
"g": "31cb6729aac0ba46",
|
317
|
-
"name": "debug 8",
|
318
|
-
"active": true,
|
319
|
-
"tosidebar": true,
|
320
|
-
"console": false,
|
321
|
-
"tostatus": false,
|
322
|
-
"complete": "false",
|
323
|
-
"statusVal": "",
|
324
|
-
"statusType": "auto",
|
325
|
-
"x": 640,
|
326
|
-
"y": 500,
|
327
|
-
"wires": []
|
328
|
-
},
|
329
|
-
{
|
330
|
-
"id": "019797b5a0882e7b",
|
331
|
-
"type": "debug",
|
332
|
-
"z": "a23d2e782beb66f4",
|
333
|
-
"g": "31cb6729aac0ba46",
|
334
|
-
"name": "debug 9",
|
335
|
-
"active": true,
|
336
|
-
"tosidebar": true,
|
337
|
-
"console": false,
|
338
|
-
"tostatus": false,
|
339
|
-
"complete": "externalTaskId",
|
340
|
-
"targetType": "msg",
|
341
|
-
"statusVal": "",
|
342
|
-
"statusType": "auto",
|
343
|
-
"x": 640,
|
344
|
-
"y": 560,
|
345
|
-
"wires": []
|
346
|
-
},
|
347
269
|
{
|
348
270
|
"id": "fb87f79852b22e4a",
|
349
271
|
"type": "externaltask-error",
|
350
272
|
"z": "a23d2e782beb66f4",
|
351
273
|
"g": "31cb6729aac0ba46",
|
352
|
-
"name": "
|
274
|
+
"name": "Send Error to Engine",
|
353
275
|
"error": "MyErrorCode",
|
354
|
-
"x":
|
355
|
-
"y":
|
276
|
+
"x": 720,
|
277
|
+
"y": 420,
|
356
278
|
"wires": [
|
357
279
|
[]
|
358
280
|
]
|
@@ -363,55 +285,8 @@
|
|
363
285
|
"z": "a23d2e782beb66f4",
|
364
286
|
"g": "31cb6729aac0ba46",
|
365
287
|
"name": "",
|
366
|
-
"x":
|
367
|
-
"y":
|
368
|
-
"wires": []
|
369
|
-
},
|
370
|
-
{
|
371
|
-
"id": "c18723294975e975",
|
372
|
-
"type": "inject",
|
373
|
-
"z": "a23d2e782beb66f4",
|
374
|
-
"name": "",
|
375
|
-
"props": [
|
376
|
-
{
|
377
|
-
"p": "payload"
|
378
|
-
},
|
379
|
-
{
|
380
|
-
"p": "eventName",
|
381
|
-
"v": "sampleEvent",
|
382
|
-
"vt": "str"
|
383
|
-
}
|
384
|
-
],
|
385
|
-
"repeat": "",
|
386
|
-
"crontab": "",
|
387
|
-
"once": false,
|
388
|
-
"onceDelay": 0.1,
|
389
|
-
"topic": "",
|
390
|
-
"payload": "{\t \t}",
|
391
|
-
"payloadType": "jsonata",
|
392
|
-
"x": 190,
|
393
|
-
"y": 1200,
|
394
|
-
"wires": [
|
395
|
-
[
|
396
|
-
"ddcde0ab7abfb8af"
|
397
|
-
]
|
398
|
-
]
|
399
|
-
},
|
400
|
-
{
|
401
|
-
"id": "ddcde0ab7abfb8af",
|
402
|
-
"type": "debug",
|
403
|
-
"z": "a23d2e782beb66f4",
|
404
|
-
"name": "debug 18",
|
405
|
-
"active": true,
|
406
|
-
"tosidebar": true,
|
407
|
-
"console": false,
|
408
|
-
"tostatus": false,
|
409
|
-
"complete": "true",
|
410
|
-
"targetType": "full",
|
411
|
-
"statusVal": "",
|
412
|
-
"statusType": "auto",
|
413
|
-
"x": 480,
|
414
|
-
"y": 1200,
|
288
|
+
"x": 710,
|
289
|
+
"y": 360,
|
415
290
|
"wires": []
|
416
291
|
},
|
417
292
|
{
|
@@ -422,7 +297,7 @@
|
|
422
297
|
"name": "Simple External Task handling",
|
423
298
|
"info": "",
|
424
299
|
"x": 180,
|
425
|
-
"y":
|
300
|
+
"y": 120,
|
426
301
|
"wires": []
|
427
302
|
},
|
428
303
|
{
|
@@ -433,7 +308,17 @@
|
|
433
308
|
"name": "Error handling with external tasks",
|
434
309
|
"info": "",
|
435
310
|
"x": 190,
|
436
|
-
"y":
|
311
|
+
"y": 300,
|
312
|
+
"wires": []
|
313
|
+
},
|
314
|
+
{
|
315
|
+
"id": "799125e21de02f13",
|
316
|
+
"type": "comment",
|
317
|
+
"z": "a23d2e782beb66f4",
|
318
|
+
"name": "For Testing, deploy \"External-Task-Sample.bpmn\" and start the process.",
|
319
|
+
"info": "",
|
320
|
+
"x": 300,
|
321
|
+
"y": 40,
|
437
322
|
"wires": []
|
438
323
|
},
|
439
324
|
{
|
package/package.json
CHANGED
@@ -0,0 +1,94 @@
|
|
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>Wird am Boundary-Event weiter ausgeführt</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 "Test"" 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 "SampleError"" 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="ExternalTaskWorkerError" />
|
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:BPMNEdge id="Association_0ivfgz1_di" bpmnElement="Association_0ivfgz1">
|
85
|
+
<di:waypoint x="401" y="130" />
|
86
|
+
<di:waypoint x="413" y="90" />
|
87
|
+
</bpmndi:BPMNEdge>
|
88
|
+
<bpmndi:BPMNShape id="TextAnnotation_0lbjt7p_di" bpmnElement="TextAnnotation_0lbjt7p">
|
89
|
+
<dc:Bounds x="370" y="50" width="170" height="40" />
|
90
|
+
<bpmndi:BPMNLabel />
|
91
|
+
</bpmndi:BPMNShape>
|
92
|
+
</bpmndi:BPMNPlane>
|
93
|
+
</bpmndi:BPMNDiagram>
|
94
|
+
</bpmn:definitions>
|
@@ -1,78 +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="CheckError_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="CheckError" processRef="CheckError_Process" />
|
5
|
-
</bpmn:collaboration>
|
6
|
-
<bpmn:process id="CheckError_Process" name="CheckError" isExecutable="true">
|
7
|
-
<bpmn:laneSet>
|
8
|
-
<bpmn:lane id="Lane_1xzf0d3" name="Lane">
|
9
|
-
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
|
10
|
-
<bpmn:flowNodeRef>Event_0kmuys0</bpmn:flowNodeRef>
|
11
|
-
<bpmn:flowNodeRef>Activity_09zn4t5</bpmn:flowNodeRef>
|
12
|
-
<bpmn:flowNodeRef>Event_1gy657v</bpmn:flowNodeRef>
|
13
|
-
<bpmn:flowNodeRef>Event_1w4tivm</bpmn:flowNodeRef>
|
14
|
-
</bpmn:lane>
|
15
|
-
</bpmn:laneSet>
|
16
|
-
<bpmn:startEvent id="StartEvent_1" name="Start">
|
17
|
-
<bpmn:outgoing>Flow_14izvt0</bpmn:outgoing>
|
18
|
-
</bpmn:startEvent>
|
19
|
-
<bpmn:sequenceFlow id="Flow_14izvt0" sourceRef="StartEvent_1" targetRef="Activity_09zn4t5" />
|
20
|
-
<bpmn:endEvent id="Event_0kmuys0">
|
21
|
-
<bpmn:incoming>Flow_1ukmuxb</bpmn:incoming>
|
22
|
-
</bpmn:endEvent>
|
23
|
-
<bpmn:sequenceFlow id="Flow_1ukmuxb" sourceRef="Activity_09zn4t5" targetRef="Event_0kmuys0" />
|
24
|
-
<bpmn:serviceTask id="Activity_09zn4t5" name="ETW with error" camunda:type="external" camunda:topic="SampleError">
|
25
|
-
<bpmn:incoming>Flow_14izvt0</bpmn:incoming>
|
26
|
-
<bpmn:outgoing>Flow_1ukmuxb</bpmn:outgoing>
|
27
|
-
</bpmn:serviceTask>
|
28
|
-
<bpmn:sequenceFlow id="Flow_0tgf785" sourceRef="Event_1w4tivm" targetRef="Event_1gy657v" />
|
29
|
-
<bpmn:endEvent id="Event_1gy657v">
|
30
|
-
<bpmn:incoming>Flow_0tgf785</bpmn:incoming>
|
31
|
-
</bpmn:endEvent>
|
32
|
-
<bpmn:boundaryEvent id="Event_1w4tivm" attachedToRef="Activity_09zn4t5">
|
33
|
-
<bpmn:outgoing>Flow_0tgf785</bpmn:outgoing>
|
34
|
-
<bpmn:errorEventDefinition id="ErrorEventDefinition_0nesf0j" />
|
35
|
-
</bpmn:boundaryEvent>
|
36
|
-
</bpmn:process>
|
37
|
-
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
38
|
-
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1cidyxu">
|
39
|
-
<bpmndi:BPMNShape id="Participant_0px403d_di" bpmnElement="Participant_0px403d" isHorizontal="true">
|
40
|
-
<dc:Bounds x="5" y="4" width="525" height="346" />
|
41
|
-
</bpmndi:BPMNShape>
|
42
|
-
<bpmndi:BPMNShape id="Lane_1xzf0d3_di" bpmnElement="Lane_1xzf0d3" isHorizontal="true">
|
43
|
-
<dc:Bounds x="35" y="4" width="495" height="346" />
|
44
|
-
</bpmndi:BPMNShape>
|
45
|
-
<bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1">
|
46
|
-
<dc:Bounds x="92" y="152" width="36" height="36" />
|
47
|
-
<bpmndi:BPMNLabel>
|
48
|
-
<dc:Bounds x="98" y="195" width="24" height="14" />
|
49
|
-
</bpmndi:BPMNLabel>
|
50
|
-
</bpmndi:BPMNShape>
|
51
|
-
<bpmndi:BPMNShape id="Event_0kmuys0_di" bpmnElement="Event_0kmuys0">
|
52
|
-
<dc:Bounds x="332" y="152" width="36" height="36" />
|
53
|
-
</bpmndi:BPMNShape>
|
54
|
-
<bpmndi:BPMNShape id="Activity_04h2kr7_di" bpmnElement="Activity_09zn4t5">
|
55
|
-
<dc:Bounds x="180" y="130" width="100" height="80" />
|
56
|
-
</bpmndi:BPMNShape>
|
57
|
-
<bpmndi:BPMNShape id="Event_1gy657v_di" bpmnElement="Event_1gy657v">
|
58
|
-
<dc:Bounds x="362" y="272" width="36" height="36" />
|
59
|
-
</bpmndi:BPMNShape>
|
60
|
-
<bpmndi:BPMNShape id="Event_0s7ur9g_di" bpmnElement="Event_1w4tivm">
|
61
|
-
<dc:Bounds x="222" y="192" width="36" height="36" />
|
62
|
-
</bpmndi:BPMNShape>
|
63
|
-
<bpmndi:BPMNEdge id="Flow_14izvt0_di" bpmnElement="Flow_14izvt0">
|
64
|
-
<di:waypoint x="128" y="170" />
|
65
|
-
<di:waypoint x="180" y="170" />
|
66
|
-
</bpmndi:BPMNEdge>
|
67
|
-
<bpmndi:BPMNEdge id="Flow_1ukmuxb_di" bpmnElement="Flow_1ukmuxb">
|
68
|
-
<di:waypoint x="280" y="170" />
|
69
|
-
<di:waypoint x="332" y="170" />
|
70
|
-
</bpmndi:BPMNEdge>
|
71
|
-
<bpmndi:BPMNEdge id="Flow_0tgf785_di" bpmnElement="Flow_0tgf785">
|
72
|
-
<di:waypoint x="240" y="228" />
|
73
|
-
<di:waypoint x="240" y="290" />
|
74
|
-
<di:waypoint x="362" y="290" />
|
75
|
-
</bpmndi:BPMNEdge>
|
76
|
-
</bpmndi:BPMNPlane>
|
77
|
-
</bpmndi:BPMNDiagram>
|
78
|
-
</bpmn:definitions>
|
@@ -1,77 +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="NodeRedExternalTask_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="NodeRedExternalTask" processRef="NodeRedExternalTask_Process" />
|
5
|
-
</bpmn:collaboration>
|
6
|
-
<bpmn:process id="NodeRedExternalTask_Process" name="NodeRedExternalTask" isExecutable="true">
|
7
|
-
<bpmn:laneSet>
|
8
|
-
<bpmn:lane id="Lane_1xzf0d3">
|
9
|
-
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
|
10
|
-
<bpmn:flowNodeRef>Activity_1h843f0</bpmn:flowNodeRef>
|
11
|
-
<bpmn:flowNodeRef>Activity_1duxvq1</bpmn:flowNodeRef>
|
12
|
-
<bpmn:flowNodeRef>Event_0z1wtnd</bpmn:flowNodeRef>
|
13
|
-
</bpmn:lane>
|
14
|
-
</bpmn:laneSet>
|
15
|
-
<bpmn:startEvent id="StartEvent_1" name="Start">
|
16
|
-
<bpmn:outgoing>Flow_1xfzejj</bpmn:outgoing>
|
17
|
-
</bpmn:startEvent>
|
18
|
-
<bpmn:sequenceFlow id="Flow_1xfzejj" sourceRef="StartEvent_1" targetRef="Activity_1h843f0" />
|
19
|
-
<bpmn:serviceTask id="Activity_1h843f0" name="Node Red Flow" camunda:type="external" camunda:topic="Test">
|
20
|
-
<bpmn:extensionElements>
|
21
|
-
<camunda:properties>
|
22
|
-
<camunda:property name="payload" value="{ test: 1 }" />
|
23
|
-
</camunda:properties>
|
24
|
-
</bpmn:extensionElements>
|
25
|
-
<bpmn:incoming>Flow_1xfzejj</bpmn:incoming>
|
26
|
-
<bpmn:outgoing>Flow_110cohh</bpmn:outgoing>
|
27
|
-
</bpmn:serviceTask>
|
28
|
-
<bpmn:sequenceFlow id="Flow_110cohh" sourceRef="Activity_1h843f0" targetRef="Activity_1duxvq1" />
|
29
|
-
<bpmn:serviceTask id="Activity_1duxvq1" name="SampleError" camunda:type="external" camunda:topic="SampleError">
|
30
|
-
<bpmn:incoming>Flow_110cohh</bpmn:incoming>
|
31
|
-
<bpmn:outgoing>Flow_1u1afua</bpmn:outgoing>
|
32
|
-
</bpmn:serviceTask>
|
33
|
-
<bpmn:sequenceFlow id="Flow_1u1afua" sourceRef="Activity_1duxvq1" targetRef="Event_0z1wtnd" />
|
34
|
-
<bpmn:endEvent id="Event_0z1wtnd">
|
35
|
-
<bpmn:incoming>Flow_1u1afua</bpmn:incoming>
|
36
|
-
</bpmn:endEvent>
|
37
|
-
</bpmn:process>
|
38
|
-
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
39
|
-
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1cidyxu">
|
40
|
-
<bpmndi:BPMNShape id="Participant_0px403d_di" bpmnElement="Participant_0px403d" isHorizontal="true">
|
41
|
-
<dc:Bounds x="5" y="4" width="695" height="346" />
|
42
|
-
</bpmndi:BPMNShape>
|
43
|
-
<bpmndi:BPMNShape id="Lane_1xzf0d3_di" bpmnElement="Lane_1xzf0d3" isHorizontal="true">
|
44
|
-
<dc:Bounds x="35" y="4" width="665" height="346" />
|
45
|
-
</bpmndi:BPMNShape>
|
46
|
-
<bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1">
|
47
|
-
<dc:Bounds x="92" y="152" width="36" height="36" />
|
48
|
-
<bpmndi:BPMNLabel>
|
49
|
-
<dc:Bounds x="98" y="195" width="24" height="14" />
|
50
|
-
</bpmndi:BPMNLabel>
|
51
|
-
</bpmndi:BPMNShape>
|
52
|
-
<bpmndi:BPMNShape id="Activity_0sg2du2_di" bpmnElement="Activity_1h843f0">
|
53
|
-
<dc:Bounds x="180" y="130" width="100" height="80" />
|
54
|
-
<bpmndi:BPMNLabel />
|
55
|
-
</bpmndi:BPMNShape>
|
56
|
-
<bpmndi:BPMNShape id="Activity_1ohliek_di" bpmnElement="Activity_1duxvq1">
|
57
|
-
<dc:Bounds x="370" y="130" width="100" height="80" />
|
58
|
-
<bpmndi:BPMNLabel />
|
59
|
-
</bpmndi:BPMNShape>
|
60
|
-
<bpmndi:BPMNShape id="Event_0z1wtnd_di" bpmnElement="Event_0z1wtnd">
|
61
|
-
<dc:Bounds x="562" y="152" width="36" height="36" />
|
62
|
-
</bpmndi:BPMNShape>
|
63
|
-
<bpmndi:BPMNEdge id="Flow_1xfzejj_di" bpmnElement="Flow_1xfzejj">
|
64
|
-
<di:waypoint x="128" y="170" />
|
65
|
-
<di:waypoint x="180" y="170" />
|
66
|
-
</bpmndi:BPMNEdge>
|
67
|
-
<bpmndi:BPMNEdge id="Flow_110cohh_di" bpmnElement="Flow_110cohh">
|
68
|
-
<di:waypoint x="280" y="170" />
|
69
|
-
<di:waypoint x="370" y="170" />
|
70
|
-
</bpmndi:BPMNEdge>
|
71
|
-
<bpmndi:BPMNEdge id="Flow_1u1afua_di" bpmnElement="Flow_1u1afua">
|
72
|
-
<di:waypoint x="470" y="170" />
|
73
|
-
<di:waypoint x="562" y="170" />
|
74
|
-
</bpmndi:BPMNEdge>
|
75
|
-
</bpmndi:BPMNPlane>
|
76
|
-
</bpmndi:BPMNDiagram>
|
77
|
-
</bpmn:definitions>
|
@@ -1,95 +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="SampleUserTask_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="SampleUserTask" processRef="SampleUserTask_Process" />
|
5
|
-
</bpmn:collaboration>
|
6
|
-
<bpmn:process id="SampleUserTask_Process" name="SampleUserTask" isExecutable="true">
|
7
|
-
<bpmn:laneSet>
|
8
|
-
<bpmn:lane id="Lane_1xzf0d3" name="Lane">
|
9
|
-
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
|
10
|
-
<bpmn:flowNodeRef>Activity_0ljiko7</bpmn:flowNodeRef>
|
11
|
-
<bpmn:flowNodeRef>Event_1eeiwx4</bpmn:flowNodeRef>
|
12
|
-
<bpmn:flowNodeRef>Activity_0glvmjk</bpmn:flowNodeRef>
|
13
|
-
</bpmn:lane>
|
14
|
-
</bpmn:laneSet>
|
15
|
-
<bpmn:startEvent id="StartEvent_1" name="Start">
|
16
|
-
<bpmn:extensionElements>
|
17
|
-
<camunda:properties>
|
18
|
-
<camunda:property name="studio.defaultCustomStartToken" value="{ "sample": "hello" }" />
|
19
|
-
</camunda:properties>
|
20
|
-
</bpmn:extensionElements>
|
21
|
-
<bpmn:outgoing>Flow_1h0giih</bpmn:outgoing>
|
22
|
-
</bpmn:startEvent>
|
23
|
-
<bpmn:sequenceFlow id="Flow_1h0giih" sourceRef="StartEvent_1" targetRef="Activity_0ljiko7" />
|
24
|
-
<bpmn:userTask id="Activity_0ljiko7" name="Hello world">
|
25
|
-
<bpmn:extensionElements>
|
26
|
-
<camunda:formData>
|
27
|
-
<camunda:formField id="text_id" label="Text Label" type="string" />
|
28
|
-
<camunda:formField id="number_id" label="Number Label" type="long" defaultValue="${token.current.sample}" customForm="{"hint":"Sample"}" />
|
29
|
-
<camunda:formField id="date_id" label="Date Label" type="date" />
|
30
|
-
<camunda:formField id="select_id" label="Select Label" type="enum">
|
31
|
-
<camunda:value id="value_01" name="Value 01" />
|
32
|
-
<camunda:value id="value_02" name="Value 02" />
|
33
|
-
</camunda:formField>
|
34
|
-
<camunda:formField id="boolean_id" label="Boolean Label" type="boolean" />
|
35
|
-
</camunda:formData>
|
36
|
-
</bpmn:extensionElements>
|
37
|
-
<bpmn:incoming>Flow_1h0giih</bpmn:incoming>
|
38
|
-
<bpmn:outgoing>Flow_06e5qq4</bpmn:outgoing>
|
39
|
-
</bpmn:userTask>
|
40
|
-
<bpmn:sequenceFlow id="Flow_06e5qq4" sourceRef="Activity_0ljiko7" targetRef="Activity_0glvmjk" />
|
41
|
-
<bpmn:endEvent id="Event_1eeiwx4">
|
42
|
-
<bpmn:incoming>Flow_02dyxfy</bpmn:incoming>
|
43
|
-
</bpmn:endEvent>
|
44
|
-
<bpmn:sequenceFlow id="Flow_02dyxfy" sourceRef="Activity_0glvmjk" targetRef="Event_1eeiwx4" />
|
45
|
-
<bpmn:userTask id="Activity_0glvmjk" name="foo">
|
46
|
-
<bpmn:extensionElements>
|
47
|
-
<camunda:formData>
|
48
|
-
<camunda:formField id="FormField_BeDNcjma" label="Label 1" type="string" />
|
49
|
-
<camunda:formField id="FormField_Qv2INvg4" label="Label 2" type="string" />
|
50
|
-
</camunda:formData>
|
51
|
-
</bpmn:extensionElements>
|
52
|
-
<bpmn:incoming>Flow_06e5qq4</bpmn:incoming>
|
53
|
-
<bpmn:outgoing>Flow_02dyxfy</bpmn:outgoing>
|
54
|
-
</bpmn:userTask>
|
55
|
-
</bpmn:process>
|
56
|
-
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
57
|
-
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1cidyxu">
|
58
|
-
<bpmndi:BPMNShape id="Participant_0px403d_di" bpmnElement="Participant_0px403d" isHorizontal="true">
|
59
|
-
<dc:Bounds x="5" y="4" width="665" height="346" />
|
60
|
-
</bpmndi:BPMNShape>
|
61
|
-
<bpmndi:BPMNShape id="Lane_1xzf0d3_di" bpmnElement="Lane_1xzf0d3" isHorizontal="true">
|
62
|
-
<dc:Bounds x="35" y="4" width="635" height="346" />
|
63
|
-
</bpmndi:BPMNShape>
|
64
|
-
<bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1">
|
65
|
-
<dc:Bounds x="92" y="152" width="36" height="36" />
|
66
|
-
<bpmndi:BPMNLabel>
|
67
|
-
<dc:Bounds x="98" y="195" width="24" height="14" />
|
68
|
-
</bpmndi:BPMNLabel>
|
69
|
-
</bpmndi:BPMNShape>
|
70
|
-
<bpmndi:BPMNShape id="Activity_1uodwbi_di" bpmnElement="Activity_0ljiko7">
|
71
|
-
<dc:Bounds x="180" y="130" width="100" height="80" />
|
72
|
-
<bpmndi:BPMNLabel />
|
73
|
-
</bpmndi:BPMNShape>
|
74
|
-
<bpmndi:BPMNShape id="Event_1eeiwx4_di" bpmnElement="Event_1eeiwx4">
|
75
|
-
<dc:Bounds x="482" y="152" width="36" height="36" />
|
76
|
-
</bpmndi:BPMNShape>
|
77
|
-
<bpmndi:BPMNShape id="Activity_0vcm0z0_di" bpmnElement="Activity_0glvmjk">
|
78
|
-
<dc:Bounds x="330" y="130" width="100" height="80" />
|
79
|
-
<bpmndi:BPMNLabel />
|
80
|
-
</bpmndi:BPMNShape>
|
81
|
-
<bpmndi:BPMNEdge id="Flow_1h0giih_di" bpmnElement="Flow_1h0giih">
|
82
|
-
<di:waypoint x="128" y="170" />
|
83
|
-
<di:waypoint x="180" y="170" />
|
84
|
-
</bpmndi:BPMNEdge>
|
85
|
-
<bpmndi:BPMNEdge id="Flow_06e5qq4_di" bpmnElement="Flow_06e5qq4">
|
86
|
-
<di:waypoint x="280" y="170" />
|
87
|
-
<di:waypoint x="330" y="170" />
|
88
|
-
</bpmndi:BPMNEdge>
|
89
|
-
<bpmndi:BPMNEdge id="Flow_02dyxfy_di" bpmnElement="Flow_02dyxfy">
|
90
|
-
<di:waypoint x="430" y="170" />
|
91
|
-
<di:waypoint x="482" y="170" />
|
92
|
-
</bpmndi:BPMNEdge>
|
93
|
-
</bpmndi:BPMNPlane>
|
94
|
-
</bpmndi:BPMNDiagram>
|
95
|
-
</bpmn:definitions>
|