@5minds/node-red-contrib-processcube 0.13.0 → 0.14.0-develop-6cc1ff-lz03ui7c
Sign up to get free protection for your applications and to get access to all the features.
- package/Dockerfile +1 -1
- package/docker-compose.yml +12 -0
- package/examples/External-Task-Sample.json +252 -0
- package/externaltask-error.html +16 -2
- package/externaltask-error.js +11 -13
- package/externaltask-input.html +19 -2
- package/externaltask-input.js +97 -44
- package/externaltask-output.html +12 -2
- package/externaltask-output.js +3 -3
- package/message-event-trigger.js +26 -34
- package/nodered/node-red-contrib-processcube-flows.json +216 -132
- package/nodered/package.json +1 -0
- package/nodered/settings.js +1 -1
- package/package.json +2 -2
- package/process-start.js +23 -28
- package/processcube-engine-config.js +17 -2
- package/processdefinition-query.js +47 -45
- package/processes/External-Task-Sample.bpmn +94 -0
- package/processinstance-query.js +25 -27
- package/signal-event-trigger.js +26 -34
- package/usertask-finished-listener.js +52 -31
- package/usertask-input.js +48 -34
- package/usertask-new-listener.js +49 -32
- package/usertask-output.js +35 -31
- package/processes/CheckError.bpmn +0 -78
- package/processes/NodeRedExternalTask.bpmn +0 -77
- package/processes/SampleUserTask.bpmn +0 -95
package/usertask-new-listener.js
CHANGED
@@ -1,59 +1,76 @@
|
|
1
|
-
const process = require(
|
2
|
-
const EventEmitter = require(
|
1
|
+
const process = require("process");
|
2
|
+
const EventEmitter = require("node:events");
|
3
3
|
|
4
|
-
const engine_client = require(
|
4
|
+
const engine_client = require("@5minds/processcube_engine_client");
|
5
5
|
|
6
|
-
module.exports = function(RED) {
|
6
|
+
module.exports = function (RED) {
|
7
7
|
function UserTaskNewListener(config) {
|
8
8
|
RED.nodes.createNode(this, config);
|
9
9
|
var node = this;
|
10
10
|
var flowContext = node.context().flow;
|
11
|
-
var nodeContext = node.context();
|
12
11
|
|
13
12
|
this.engine = this.server = RED.nodes.getNode(config.engine);
|
14
13
|
|
15
|
-
const
|
14
|
+
const client = this.engine.getEngineClient();
|
16
15
|
|
17
|
-
var
|
18
|
-
|
19
|
-
if (!client) {
|
20
|
-
nodeContext.set('client', new engine_client.EngineClient(engineUrl));
|
21
|
-
client = nodeContext.get('client');
|
22
|
-
}
|
23
|
-
|
24
|
-
var eventEmitter = flowContext.get('emitter');
|
16
|
+
var eventEmitter = flowContext.get("emitter");
|
25
17
|
|
26
18
|
if (!eventEmitter) {
|
27
|
-
flowContext.set(
|
28
|
-
eventEmitter = flowContext.get(
|
19
|
+
flowContext.set("emitter", new EventEmitter());
|
20
|
+
eventEmitter = flowContext.get("emitter");
|
29
21
|
}
|
30
|
-
|
22
|
+
|
31
23
|
const register = async () => {
|
32
24
|
let currentIdentity = node.server.identity;
|
33
|
-
let subscription = await client.userTasks.onUserTaskWaiting(
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
25
|
+
let subscription = await client.userTasks.onUserTaskWaiting(
|
26
|
+
(userTaskWaitingNotification) => {
|
27
|
+
node.send({
|
28
|
+
payload: {
|
29
|
+
flowNodeInstanceId:
|
30
|
+
userTaskWaitingNotification.flowNodeInstanceId,
|
31
|
+
action: "new",
|
32
|
+
type: "usertask",
|
33
|
+
},
|
34
|
+
});
|
35
|
+
},
|
36
|
+
{ identity: currentIdentity }
|
37
|
+
);
|
38
|
+
|
39
|
+
node.server.registerOnIdentityChanged(async (identity) => {
|
40
|
+
client.userTasks.removeSubscription(
|
41
|
+
subscription,
|
42
|
+
currentIdentity
|
43
|
+
);
|
39
44
|
currentIdentity = identity;
|
40
|
-
|
41
|
-
subscription = await client.userTasks.onUserTaskWaiting(
|
42
|
-
|
43
|
-
|
45
|
+
|
46
|
+
subscription = await client.userTasks.onUserTaskWaiting(
|
47
|
+
(userTaskWaitingNotification) => {
|
48
|
+
node.send({
|
49
|
+
payload: {
|
50
|
+
flowNodeInstanceId:
|
51
|
+
userTaskWaitingNotification.flowNodeInstanceId,
|
52
|
+
action: "new",
|
53
|
+
type: "usertask",
|
54
|
+
},
|
55
|
+
});
|
56
|
+
},
|
57
|
+
{ identity: currentIdentity }
|
58
|
+
);
|
44
59
|
});
|
45
|
-
|
60
|
+
|
46
61
|
node.on("close", async () => {
|
47
|
-
client.userTasks.removeSubscription(
|
62
|
+
client.userTasks.removeSubscription(
|
63
|
+
subscription,
|
64
|
+
currentIdentity
|
65
|
+
);
|
48
66
|
client.dispose();
|
49
67
|
client = null;
|
50
68
|
});
|
51
|
-
}
|
69
|
+
};
|
52
70
|
|
53
71
|
if (node.server) {
|
54
72
|
register();
|
55
73
|
}
|
56
|
-
|
57
74
|
}
|
58
75
|
RED.nodes.registerType("usertask-new-listener", UserTaskNewListener);
|
59
|
-
}
|
76
|
+
};
|
package/usertask-output.js
CHANGED
@@ -1,53 +1,57 @@
|
|
1
|
-
const process = require(
|
2
|
-
const EventEmitter = require(
|
1
|
+
const process = require("process");
|
2
|
+
const EventEmitter = require("node:events");
|
3
3
|
|
4
|
-
const engine_client = require(
|
4
|
+
const engine_client = require("@5minds/processcube_engine_client");
|
5
5
|
|
6
|
-
module.exports = function(RED) {
|
6
|
+
module.exports = function (RED) {
|
7
7
|
function UserTaskOutput(config) {
|
8
|
-
|
9
8
|
RED.nodes.createNode(this, config);
|
10
9
|
|
11
10
|
var node = this;
|
12
11
|
var flowContext = node.context().flow;
|
13
|
-
var nodeContext = node.context();
|
14
12
|
|
15
13
|
this.engine = this.server = RED.nodes.getNode(config.engine);
|
16
14
|
|
17
|
-
const
|
18
|
-
|
19
|
-
var client = nodeContext.get('client');
|
20
|
-
|
21
|
-
if (!client) {
|
22
|
-
nodeContext.set('client', new engine_client.EngineClient(engineUrl));
|
23
|
-
client = nodeContext.get('client');
|
24
|
-
}
|
15
|
+
const client = this.engine.getEngineClient();
|
25
16
|
|
26
|
-
var eventEmitter = flowContext.get(
|
17
|
+
var eventEmitter = flowContext.get("emitter");
|
27
18
|
|
28
19
|
if (!eventEmitter) {
|
29
|
-
flowContext.set(
|
30
|
-
eventEmitter = flowContext.get(
|
20
|
+
flowContext.set("emitter", new EventEmitter());
|
21
|
+
eventEmitter = flowContext.get("emitter");
|
31
22
|
}
|
32
23
|
|
33
|
-
node.on(
|
24
|
+
node.on("input", function (msg) {
|
34
25
|
if (msg.payload.userTask) {
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
const userTaskResult = RED.util.evaluateNodeProperty(
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
26
|
+
const flowNodeInstanceId =
|
27
|
+
msg.payload.userTask.flowNodeInstanceId;
|
28
|
+
|
29
|
+
const userTaskResult = RED.util.evaluateNodeProperty(
|
30
|
+
config.result,
|
31
|
+
config.result_type,
|
32
|
+
node,
|
33
|
+
msg
|
34
|
+
);
|
35
|
+
|
36
|
+
client.userTasks
|
37
|
+
.finishUserTask(
|
38
|
+
flowNodeInstanceId,
|
39
|
+
userTaskResult,
|
40
|
+
node.server.identity
|
41
|
+
)
|
42
|
+
.then(() => {
|
43
|
+
node.send(msg);
|
44
|
+
})
|
45
|
+
.catch((error) => {
|
46
|
+
node.error(error);
|
47
|
+
});
|
46
48
|
} else {
|
47
|
-
node.error(
|
49
|
+
node.error(
|
50
|
+
`No UserTask found in message: ${JSON.stringify(msg.payload)}`
|
51
|
+
);
|
48
52
|
}
|
49
53
|
});
|
50
54
|
}
|
51
55
|
|
52
56
|
RED.nodes.registerType("usertask-output", UserTaskOutput);
|
53
|
-
}
|
57
|
+
};
|
@@ -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>
|