@5minds/node-red-contrib-processcube 0.3.5-feature-a2045d-lximtnpj → 0.3.5-feature-d317c3-lxj45fct
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.
- package/nodered/.node-red-contrib-processcube-flows.json.backup +624 -143
- package/nodered/node-red-contrib-processcube-flows.json +598 -138
- package/package.json +1 -1
- package/processes/HelloWorld.bpmn +66 -19
- package/processes/SampleEvent.bpmn +73 -0
- package/usertask-input.js +0 -2
- package/usertask-output.html +1 -1
- package/usertask-output.js +2 -0
package/package.json
CHANGED
@@ -1,27 +1,25 @@
|
|
1
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:di="http://www.omg.org/spec/DD/20100524/DI" id="HelloWorld_Definition" targetNamespace="http://bpmn.io/schema/bpmn" exporter="5Minds Studio" exporterVersion="1">
|
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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="HelloWorld_Definition" targetNamespace="http://bpmn.io/schema/bpmn" exporter="5Minds Studio" exporterVersion="1">
|
3
3
|
<bpmn:collaboration id="Collaboration_1cidyxu" name="">
|
4
4
|
<bpmn:participant id="Participant_0px403d" name="HelloWorld" processRef="HelloWorld_Process" />
|
5
5
|
</bpmn:collaboration>
|
6
6
|
<bpmn:process id="HelloWorld_Process" name="HelloWorld" isExecutable="true">
|
7
7
|
<bpmn:laneSet>
|
8
8
|
<bpmn:lane id="Lane_1xzf0d3" name="Lane">
|
9
|
-
<bpmn:
|
10
|
-
|
9
|
+
<bpmn:extensionElements>
|
10
|
+
<camunda:properties>
|
11
|
+
<camunda:property name="datastore" value="localDB" />
|
12
|
+
</camunda:properties>
|
13
|
+
</bpmn:extensionElements>
|
11
14
|
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
|
12
15
|
<bpmn:flowNodeRef>StartEvent_2</bpmn:flowNodeRef>
|
16
|
+
<bpmn:flowNodeRef>Event_098kcno</bpmn:flowNodeRef>
|
17
|
+
<bpmn:flowNodeRef>Event_1dke00u</bpmn:flowNodeRef>
|
18
|
+
<bpmn:flowNodeRef>Activity_0qfd2qf</bpmn:flowNodeRef>
|
13
19
|
</bpmn:lane>
|
14
20
|
</bpmn:laneSet>
|
15
|
-
<bpmn:task id="Activity_0qfd2qf">
|
16
|
-
<bpmn:incoming>Flow_0gyaiob</bpmn:incoming>
|
17
|
-
<bpmn:incoming>Flow_02bhdfx</bpmn:incoming>
|
18
|
-
<bpmn:outgoing>Flow_1vz3m6d</bpmn:outgoing>
|
19
|
-
</bpmn:task>
|
20
21
|
<bpmn:sequenceFlow id="Flow_0gyaiob" sourceRef="StartEvent_1" targetRef="Activity_0qfd2qf" />
|
21
|
-
<bpmn:
|
22
|
-
<bpmn:incoming>Flow_1vz3m6d</bpmn:incoming>
|
23
|
-
</bpmn:endEvent>
|
24
|
-
<bpmn:sequenceFlow id="Flow_1vz3m6d" sourceRef="Activity_0qfd2qf" targetRef="Event_098kcno" />
|
22
|
+
<bpmn:sequenceFlow id="Flow_1vz3m6d" sourceRef="Activity_0qfd2qf" targetRef="Event_1dke00u" />
|
25
23
|
<bpmn:startEvent id="StartEvent_1" name="StartEvent_1">
|
26
24
|
<bpmn:outgoing>Flow_0gyaiob</bpmn:outgoing>
|
27
25
|
</bpmn:startEvent>
|
@@ -29,7 +27,36 @@
|
|
29
27
|
<bpmn:outgoing>Flow_02bhdfx</bpmn:outgoing>
|
30
28
|
</bpmn:startEvent>
|
31
29
|
<bpmn:sequenceFlow id="Flow_02bhdfx" sourceRef="StartEvent_2" targetRef="Activity_0qfd2qf" />
|
30
|
+
<bpmn:endEvent id="Event_098kcno">
|
31
|
+
<bpmn:incoming>Flow_020xdqk</bpmn:incoming>
|
32
|
+
</bpmn:endEvent>
|
33
|
+
<bpmn:sequenceFlow id="Flow_020xdqk" sourceRef="Event_1dke00u" targetRef="Event_098kcno" />
|
34
|
+
<bpmn:intermediateThrowEvent id="Event_1dke00u">
|
35
|
+
<bpmn:incoming>Flow_1vz3m6d</bpmn:incoming>
|
36
|
+
<bpmn:outgoing>Flow_020xdqk</bpmn:outgoing>
|
37
|
+
<bpmn:messageEventDefinition id="MessageEventDefinition_02r4uyb" messageRef="Message_2MNRTsHm" />
|
38
|
+
</bpmn:intermediateThrowEvent>
|
39
|
+
<bpmn:userTask id="Activity_0qfd2qf">
|
40
|
+
<bpmn:extensionElements>
|
41
|
+
<camunda:formData>
|
42
|
+
<camunda:formField id="FormField_c61nPzPh" type="string" />
|
43
|
+
</camunda:formData>
|
44
|
+
</bpmn:extensionElements>
|
45
|
+
<bpmn:incoming>Flow_0gyaiob</bpmn:incoming>
|
46
|
+
<bpmn:incoming>Flow_02bhdfx</bpmn:incoming>
|
47
|
+
<bpmn:outgoing>Flow_1vz3m6d</bpmn:outgoing>
|
48
|
+
<bpmn:property id="Property_0eew054" name="__targetRef_placeholder" />
|
49
|
+
<bpmn:dataInputAssociation id="DataInputAssociation_05huqd1">
|
50
|
+
<bpmn:sourceRef>DataStoreReference_12d82du</bpmn:sourceRef>
|
51
|
+
<bpmn:targetRef>Property_0eew054</bpmn:targetRef>
|
52
|
+
</bpmn:dataInputAssociation>
|
53
|
+
<bpmn:dataOutputAssociation id="DataOutputAssociation_0q4exvn">
|
54
|
+
<bpmn:targetRef>DataStoreReference_12d82du</bpmn:targetRef>
|
55
|
+
</bpmn:dataOutputAssociation>
|
56
|
+
</bpmn:userTask>
|
57
|
+
<bpmn:dataStoreReference id="DataStoreReference_12d82du" />
|
32
58
|
</bpmn:process>
|
59
|
+
<bpmn:message id="Message_2MNRTsHm" name="HelloWorld" />
|
33
60
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
34
61
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1cidyxu">
|
35
62
|
<bpmndi:BPMNShape id="Participant_0px403d_di" bpmnElement="Participant_0px403d" isHorizontal="true">
|
@@ -38,12 +65,6 @@
|
|
38
65
|
<bpmndi:BPMNShape id="Lane_1xzf0d3_di" bpmnElement="Lane_1xzf0d3" isHorizontal="true">
|
39
66
|
<dc:Bounds x="35" y="4" width="855" height="346" />
|
40
67
|
</bpmndi:BPMNShape>
|
41
|
-
<bpmndi:BPMNShape id="Activity_0qfd2qf_di" bpmnElement="Activity_0qfd2qf">
|
42
|
-
<dc:Bounds x="180" y="130" width="100" height="80" />
|
43
|
-
</bpmndi:BPMNShape>
|
44
|
-
<bpmndi:BPMNShape id="Event_098kcno_di" bpmnElement="Event_098kcno">
|
45
|
-
<dc:Bounds x="332" y="152" width="36" height="36" />
|
46
|
-
</bpmndi:BPMNShape>
|
47
68
|
<bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1">
|
48
69
|
<dc:Bounds x="92" y="82" width="36" height="36" />
|
49
70
|
<bpmndi:BPMNLabel>
|
@@ -56,6 +77,18 @@
|
|
56
77
|
<dc:Bounds x="79" y="265" width="64" height="14" />
|
57
78
|
</bpmndi:BPMNLabel>
|
58
79
|
</bpmndi:BPMNShape>
|
80
|
+
<bpmndi:BPMNShape id="Event_098kcno_di" bpmnElement="Event_098kcno">
|
81
|
+
<dc:Bounds x="472" y="152" width="36" height="36" />
|
82
|
+
</bpmndi:BPMNShape>
|
83
|
+
<bpmndi:BPMNShape id="Event_00n3l3p_di" bpmnElement="Event_1dke00u">
|
84
|
+
<dc:Bounds x="352" y="152" width="36" height="36" />
|
85
|
+
</bpmndi:BPMNShape>
|
86
|
+
<bpmndi:BPMNShape id="Activity_0jhqvza_di" bpmnElement="Activity_0qfd2qf">
|
87
|
+
<dc:Bounds x="180" y="130" width="100" height="80" />
|
88
|
+
</bpmndi:BPMNShape>
|
89
|
+
<bpmndi:BPMNShape id="DataStoreReference_12d82du_di" bpmnElement="DataStoreReference_12d82du">
|
90
|
+
<dc:Bounds x="215" y="265" width="50" height="50" />
|
91
|
+
</bpmndi:BPMNShape>
|
59
92
|
<bpmndi:BPMNEdge id="Flow_0gyaiob_di" bpmnElement="Flow_0gyaiob">
|
60
93
|
<di:waypoint x="128" y="100" />
|
61
94
|
<di:waypoint x="154" y="100" />
|
@@ -64,7 +97,7 @@
|
|
64
97
|
</bpmndi:BPMNEdge>
|
65
98
|
<bpmndi:BPMNEdge id="Flow_1vz3m6d_di" bpmnElement="Flow_1vz3m6d">
|
66
99
|
<di:waypoint x="280" y="170" />
|
67
|
-
<di:waypoint x="
|
100
|
+
<di:waypoint x="352" y="170" />
|
68
101
|
</bpmndi:BPMNEdge>
|
69
102
|
<bpmndi:BPMNEdge id="Flow_02bhdfx_di" bpmnElement="Flow_02bhdfx">
|
70
103
|
<di:waypoint x="128" y="240" />
|
@@ -72,6 +105,20 @@
|
|
72
105
|
<di:waypoint x="154" y="170" />
|
73
106
|
<di:waypoint x="180" y="170" />
|
74
107
|
</bpmndi:BPMNEdge>
|
108
|
+
<bpmndi:BPMNEdge id="Flow_020xdqk_di" bpmnElement="Flow_020xdqk">
|
109
|
+
<di:waypoint x="388" y="170" />
|
110
|
+
<di:waypoint x="472" y="170" />
|
111
|
+
</bpmndi:BPMNEdge>
|
112
|
+
<bpmndi:BPMNEdge id="DataInputAssociation_05huqd1_di" bpmnElement="DataInputAssociation_05huqd1">
|
113
|
+
<di:waypoint x="225" y="265" />
|
114
|
+
<di:waypoint x="210" y="240" />
|
115
|
+
<di:waypoint x="219" y="210" />
|
116
|
+
</bpmndi:BPMNEdge>
|
117
|
+
<bpmndi:BPMNEdge id="DataOutputAssociation_0q4exvn_di" bpmnElement="DataOutputAssociation_0q4exvn">
|
118
|
+
<di:waypoint x="250" y="210" />
|
119
|
+
<di:waypoint x="260" y="230" />
|
120
|
+
<di:waypoint x="250" y="265" />
|
121
|
+
</bpmndi:BPMNEdge>
|
75
122
|
</bpmndi:BPMNPlane>
|
76
123
|
</bpmndi:BPMNDiagram>
|
77
124
|
</bpmn:definitions>
|
@@ -0,0 +1,73 @@
|
|
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:di="http://www.omg.org/spec/DD/20100524/DI" id="SampleEvent_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="SampleEvent" processRef="SampleEvent_Process" />
|
5
|
+
</bpmn:collaboration>
|
6
|
+
<bpmn:process id="SampleEvent_Process" name="SampleEvent" isExecutable="true">
|
7
|
+
<bpmn:laneSet>
|
8
|
+
<bpmn:lane id="Lane_1xzf0d3" name="Lane">
|
9
|
+
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
|
10
|
+
<bpmn:flowNodeRef>Event_1jv39pf</bpmn:flowNodeRef>
|
11
|
+
<bpmn:flowNodeRef>Activity_18hxefy</bpmn:flowNodeRef>
|
12
|
+
<bpmn:flowNodeRef>Event_06jifnk</bpmn:flowNodeRef>
|
13
|
+
</bpmn:lane>
|
14
|
+
</bpmn:laneSet>
|
15
|
+
<bpmn:startEvent id="StartEvent_1" name="Start">
|
16
|
+
<bpmn:outgoing>Flow_0uoj46m</bpmn:outgoing>
|
17
|
+
</bpmn:startEvent>
|
18
|
+
<bpmn:sequenceFlow id="Flow_0uoj46m" sourceRef="StartEvent_1" targetRef="Event_06jifnk" />
|
19
|
+
<bpmn:sequenceFlow id="Flow_0wqom58" sourceRef="Event_06jifnk" targetRef="Activity_18hxefy" />
|
20
|
+
<bpmn:endEvent id="Event_1jv39pf">
|
21
|
+
<bpmn:incoming>Flow_1srscxt</bpmn:incoming>
|
22
|
+
</bpmn:endEvent>
|
23
|
+
<bpmn:sequenceFlow id="Flow_1srscxt" sourceRef="Activity_18hxefy" targetRef="Event_1jv39pf" />
|
24
|
+
<bpmn:task id="Activity_18hxefy" name="wait ;-)">
|
25
|
+
<bpmn:incoming>Flow_0wqom58</bpmn:incoming>
|
26
|
+
<bpmn:outgoing>Flow_1srscxt</bpmn:outgoing>
|
27
|
+
</bpmn:task>
|
28
|
+
<bpmn:intermediateCatchEvent id="Event_06jifnk">
|
29
|
+
<bpmn:incoming>Flow_0uoj46m</bpmn:incoming>
|
30
|
+
<bpmn:outgoing>Flow_0wqom58</bpmn:outgoing>
|
31
|
+
<bpmn:messageEventDefinition id="MessageEventDefinition_1jevsas" messageRef="Message_5MhJAzRd" />
|
32
|
+
</bpmn:intermediateCatchEvent>
|
33
|
+
</bpmn:process>
|
34
|
+
<bpmn:message id="Message_5MhJAzRd" name="sampleEvent" />
|
35
|
+
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
36
|
+
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1cidyxu">
|
37
|
+
<bpmndi:BPMNShape id="Participant_0px403d_di" bpmnElement="Participant_0px403d" isHorizontal="true">
|
38
|
+
<dc:Bounds x="5" y="4" width="885" height="346" />
|
39
|
+
</bpmndi:BPMNShape>
|
40
|
+
<bpmndi:BPMNShape id="Lane_1xzf0d3_di" bpmnElement="Lane_1xzf0d3" isHorizontal="true">
|
41
|
+
<dc:Bounds x="35" y="4" width="855" height="346" />
|
42
|
+
</bpmndi:BPMNShape>
|
43
|
+
<bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1">
|
44
|
+
<dc:Bounds x="92" y="152" width="36" height="36" />
|
45
|
+
<bpmndi:BPMNLabel>
|
46
|
+
<dc:Bounds x="98" y="195" width="24" height="14" />
|
47
|
+
</bpmndi:BPMNLabel>
|
48
|
+
</bpmndi:BPMNShape>
|
49
|
+
<bpmndi:BPMNShape id="Event_1jv39pf_di" bpmnElement="Event_1jv39pf">
|
50
|
+
<dc:Bounds x="442" y="152" width="36" height="36" />
|
51
|
+
</bpmndi:BPMNShape>
|
52
|
+
<bpmndi:BPMNShape id="Activity_18hxefy_di" bpmnElement="Activity_18hxefy">
|
53
|
+
<dc:Bounds x="270" y="130" width="100" height="80" />
|
54
|
+
<bpmndi:BPMNLabel />
|
55
|
+
</bpmndi:BPMNShape>
|
56
|
+
<bpmndi:BPMNShape id="Event_15e6gcf_di" bpmnElement="Event_06jifnk">
|
57
|
+
<dc:Bounds x="182" y="152" width="36" height="36" />
|
58
|
+
</bpmndi:BPMNShape>
|
59
|
+
<bpmndi:BPMNEdge id="Flow_0uoj46m_di" bpmnElement="Flow_0uoj46m">
|
60
|
+
<di:waypoint x="128" y="170" />
|
61
|
+
<di:waypoint x="182" y="170" />
|
62
|
+
</bpmndi:BPMNEdge>
|
63
|
+
<bpmndi:BPMNEdge id="Flow_0wqom58_di" bpmnElement="Flow_0wqom58">
|
64
|
+
<di:waypoint x="218" y="170" />
|
65
|
+
<di:waypoint x="270" y="170" />
|
66
|
+
</bpmndi:BPMNEdge>
|
67
|
+
<bpmndi:BPMNEdge id="Flow_1srscxt_di" bpmnElement="Flow_1srscxt">
|
68
|
+
<di:waypoint x="370" y="170" />
|
69
|
+
<di:waypoint x="442" y="170" />
|
70
|
+
</bpmndi:BPMNEdge>
|
71
|
+
</bpmndi:BPMNPlane>
|
72
|
+
</bpmndi:BPMNDiagram>
|
73
|
+
</bpmn:definitions>
|
package/usertask-input.js
CHANGED
@@ -47,8 +47,6 @@ module.exports = function(RED) {
|
|
47
47
|
|
48
48
|
let query = msg.payload;
|
49
49
|
|
50
|
-
console.log(`UserTaskInput query: ${JSON.stringify(query)}`);
|
51
|
-
|
52
50
|
client.userTasks.query(query).then((matchingFlowNodes) => {
|
53
51
|
|
54
52
|
console.log(`UserTaskInput query result: ${JSON.stringify(matchingFlowNodes)}`);
|
package/usertask-output.html
CHANGED
package/usertask-output.js
CHANGED
@@ -39,6 +39,8 @@ module.exports = function(RED) {
|
|
39
39
|
|
40
40
|
client.userTasks.finishUserTask(flowNodeInstanceId, userTaskResult).then(() => {
|
41
41
|
console.log(`UserTask with id ${flowNodeInstanceId} finished.`);
|
42
|
+
|
43
|
+
node.send(msg);
|
42
44
|
});
|
43
45
|
} else {
|
44
46
|
console.log(`No UserTask found in message: ${JSON.stringify(msg.payload)}`);
|