@5minds/node-red-contrib-processcube 1.6.6 → 1.7.1-develop-f30464-m66qfl7q
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/.processcube/nodered/.config.nodes.json +995 -0
- package/.processcube/nodered/.config.nodes.json.backup +995 -0
- package/.processcube/nodered/.config.runtime.json +3 -0
- package/.processcube/nodered/.config.users.json +28 -0
- package/.processcube/nodered/.config.users.json.backup +28 -0
- package/.processcube/nodered/.flows.json.backup +3103 -0
- package/.processcube/nodered/.node-red-contrib-processcube-flows.json.backup +1853 -0
- package/.processcube/nodered/.node-red-contrib-processcube-flows_cred.json.backup +3 -0
- package/.processcube/nodered/config.js +20 -0
- package/{nodered → .processcube/nodered}/flows.json +194 -0
- package/.processcube/nodered/package-lock.json +5169 -0
- package/.processcube/nodered/package.json +6 -0
- package/Dockerfile +14 -4
- package/docker-compose.yml +10 -2
- package/package.json +2 -1
- package/processdefinition-deploy.html +44 -0
- package/processdefinition-deploy.js +26 -0
- package/processes/ProcessModelToDeploy.bpmn +58 -0
- package/processes/SimpleExternalTask.bpmn +52 -0
- /package/{nodered → .processcube/nodered}/flows_cred.json +0 -0
- /package/{nodered → .processcube/nodered}/settings.js +0 -0
- /package/{nodered → .processcube/nodered}/static/ProcessCube_Logo.svg +0 -0
package/Dockerfile
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
FROM nodered/node-red:4.0.8
|
2
2
|
|
3
|
-
|
3
|
+
FROM nodered/node-red:4.0.8-22
|
4
4
|
|
5
|
-
|
5
|
+
# package
|
6
|
+
USER root
|
6
7
|
|
7
|
-
|
8
|
+
COPY ./ /package_src/
|
9
|
+
RUN cd /package_src/ && npm install
|
10
|
+
|
11
|
+
|
12
|
+
RUN npm install /package_src/
|
13
|
+
|
14
|
+
# defaults
|
15
|
+
USER node-red
|
16
|
+
|
17
|
+
#ENTRYPOINT ["./entrypoint.sh"]
|
18
|
+
ENTRYPOINT ["./entrypoint.sh", "--settings", "/data/config.js"]
|
8
19
|
|
9
|
-
ENTRYPOINT ["./entrypoint.sh"]
|
package/docker-compose.yml
CHANGED
@@ -4,13 +4,21 @@ services:
|
|
4
4
|
build:
|
5
5
|
context: .
|
6
6
|
ports:
|
7
|
-
-
|
7
|
+
# node-red port
|
8
|
+
- 1880:1880
|
9
|
+
# debugger port
|
10
|
+
- 9229:9229
|
8
11
|
environment:
|
9
12
|
- TZ=Europe/Berlin
|
10
13
|
- ENGINE_URL=http://engine:8000
|
11
14
|
- TOPIC=TopicFromENV
|
15
|
+
# start node-red with debugger port open
|
16
|
+
- NODE_OPTIONS=--inspect=0.0.0.0:9229
|
12
17
|
volumes:
|
13
|
-
|
18
|
+
# required for mapping the current source into the directory
|
19
|
+
- ./.:/package_src/
|
20
|
+
# save the flows
|
21
|
+
- ./.processcube/nodered:/data
|
14
22
|
depends_on:
|
15
23
|
- engine
|
16
24
|
- authority
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@5minds/node-red-contrib-processcube",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.7.1-develop-f30464-m66qfl7q",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Node-RED nodes for ProcessCube",
|
6
6
|
"scripts": {
|
@@ -46,6 +46,7 @@
|
|
46
46
|
"processcubeEngineConfig": "processcube-engine-config.js",
|
47
47
|
"ProcessinstanceQuery": "processinstance-query.js",
|
48
48
|
"ProcessinstanceDelete": "processinstance-delete.js",
|
49
|
+
"ProcessdefinitionDeploy": "processdefinition-deploy.js",
|
49
50
|
"ProcessdefinitionQuery": "processdefinition-query.js",
|
50
51
|
"messageEventTrigger": "message-event-trigger.js",
|
51
52
|
"signalEventTrigger": "signal-event-trigger.js",
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<script type="text/javascript">
|
2
|
+
RED.nodes.registerType('processdefinition-deploy', {
|
3
|
+
category: 'ProcessCube',
|
4
|
+
color: '#02AFD6',
|
5
|
+
defaults: {
|
6
|
+
name: { value: '' },
|
7
|
+
engine: { value: '', type: 'processcube-engine-config' },
|
8
|
+
},
|
9
|
+
inputs: 1,
|
10
|
+
outputs: 1,
|
11
|
+
icon: 'processdefinition_deploy.svg',
|
12
|
+
label: function () {
|
13
|
+
return this.name || 'processdefinition-deploy';
|
14
|
+
}
|
15
|
+
});
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<script type="text/html" data-template-name="processdefinition-deploy">
|
19
|
+
<div class="form-row">
|
20
|
+
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
21
|
+
<input type="text" id="node-input-name" placeholder="Name" />
|
22
|
+
</div>
|
23
|
+
<div class="form-row">
|
24
|
+
<label for="node-input-engine"><i class="fa fa-tag"></i> Engine-URL</label>
|
25
|
+
<input type="text" id="node-input-engine" placeholder="http://engine:8000" />
|
26
|
+
</div>
|
27
|
+
</script>
|
28
|
+
|
29
|
+
<script type="text/markdown" data-help-name="processdefinition-deploy">
|
30
|
+
A node to deploy process definition to the ProcessCube Engine.
|
31
|
+
|
32
|
+
## Inputs
|
33
|
+
|
34
|
+
: payload (String) : XML of the bpmn file
|
35
|
+
|
36
|
+
## Outputs
|
37
|
+
|
38
|
+
: payload (String) : XML of the bpmn file
|
39
|
+
|
40
|
+
### References
|
41
|
+
|
42
|
+
- [The ProcessCube© Developer Network](https://processcube.io) - All documentation for the ProcessCube© platform
|
43
|
+
- [ProcessCube© LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube©
|
44
|
+
</script>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module.exports = function (RED) {
|
2
|
+
function ProcessdefinitionDeploy(config) {
|
3
|
+
RED.nodes.createNode(this, config);
|
4
|
+
var node = this;
|
5
|
+
|
6
|
+
node.on('input', function (msg) {
|
7
|
+
node.engine = RED.nodes.getNode(config.engine);
|
8
|
+
const client = node.engine.engineClient;
|
9
|
+
|
10
|
+
if (!client) {
|
11
|
+
node.error('No engine configured.');
|
12
|
+
return;
|
13
|
+
}
|
14
|
+
|
15
|
+
client.processDefinitions
|
16
|
+
.persistProcessDefinitions(msg.payload, { overwriteExisting: true })
|
17
|
+
.then(() => {
|
18
|
+
node.send(msg);
|
19
|
+
})
|
20
|
+
.catch((error) => {
|
21
|
+
node.error(error, {});
|
22
|
+
});
|
23
|
+
});
|
24
|
+
}
|
25
|
+
RED.nodes.registerType('processdefinition-deploy', ProcessdefinitionDeploy);
|
26
|
+
};
|
@@ -0,0 +1,58 @@
|
|
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="ProcessModelToDeploy_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="ProcessModelToDeploy" processRef="ProcessModelToDeploy_Process" />
|
5
|
+
</bpmn:collaboration>
|
6
|
+
<bpmn:process id="ProcessModelToDeploy_Process" name="ProcessModelToDeploy" isExecutable="true">
|
7
|
+
<bpmn:laneSet>
|
8
|
+
<bpmn:lane id="Lane_1xzf0d3">
|
9
|
+
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
|
10
|
+
<bpmn:flowNodeRef>Activity_0p9qhgo</bpmn:flowNodeRef>
|
11
|
+
<bpmn:flowNodeRef>Event_151g9al</bpmn:flowNodeRef>
|
12
|
+
</bpmn:lane>
|
13
|
+
</bpmn:laneSet>
|
14
|
+
<bpmn:startEvent id="StartEvent_1" name="Start">
|
15
|
+
<bpmn:outgoing>Flow_0hm7pnt</bpmn:outgoing>
|
16
|
+
</bpmn:startEvent>
|
17
|
+
<bpmn:task id="Activity_0p9qhgo" name="Test">
|
18
|
+
<bpmn:incoming>Flow_0hm7pnt</bpmn:incoming>
|
19
|
+
<bpmn:outgoing>Flow_0xmw470</bpmn:outgoing>
|
20
|
+
</bpmn:task>
|
21
|
+
<bpmn:sequenceFlow id="Flow_0hm7pnt" sourceRef="StartEvent_1" targetRef="Activity_0p9qhgo" />
|
22
|
+
<bpmn:endEvent id="Event_151g9al">
|
23
|
+
<bpmn:incoming>Flow_0xmw470</bpmn:incoming>
|
24
|
+
</bpmn:endEvent>
|
25
|
+
<bpmn:sequenceFlow id="Flow_0xmw470" sourceRef="Activity_0p9qhgo" targetRef="Event_151g9al" />
|
26
|
+
</bpmn:process>
|
27
|
+
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
28
|
+
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1cidyxu">
|
29
|
+
<bpmndi:BPMNShape id="Participant_0px403d_di" bpmnElement="Participant_0px403d" isHorizontal="true">
|
30
|
+
<dc:Bounds x="5" y="4" width="885" height="346" />
|
31
|
+
</bpmndi:BPMNShape>
|
32
|
+
<bpmndi:BPMNShape id="Lane_1xzf0d3_di" bpmnElement="Lane_1xzf0d3" isHorizontal="true">
|
33
|
+
<dc:Bounds x="35" y="4" width="855" height="346" />
|
34
|
+
</bpmndi:BPMNShape>
|
35
|
+
<bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1">
|
36
|
+
<dc:Bounds x="92" y="152" width="36" height="36" />
|
37
|
+
<bpmndi:BPMNLabel>
|
38
|
+
<dc:Bounds x="98" y="195" width="24" height="14" />
|
39
|
+
</bpmndi:BPMNLabel>
|
40
|
+
</bpmndi:BPMNShape>
|
41
|
+
<bpmndi:BPMNShape id="Activity_0p9qhgo_di" bpmnElement="Activity_0p9qhgo">
|
42
|
+
<dc:Bounds x="180" y="130" width="100" height="80" />
|
43
|
+
<bpmndi:BPMNLabel />
|
44
|
+
</bpmndi:BPMNShape>
|
45
|
+
<bpmndi:BPMNShape id="Event_151g9al_di" bpmnElement="Event_151g9al">
|
46
|
+
<dc:Bounds x="332" y="152" width="36" height="36" />
|
47
|
+
</bpmndi:BPMNShape>
|
48
|
+
<bpmndi:BPMNEdge id="Flow_0hm7pnt_di" bpmnElement="Flow_0hm7pnt">
|
49
|
+
<di:waypoint x="128" y="170" />
|
50
|
+
<di:waypoint x="180" y="170" />
|
51
|
+
</bpmndi:BPMNEdge>
|
52
|
+
<bpmndi:BPMNEdge id="Flow_0xmw470_di" bpmnElement="Flow_0xmw470">
|
53
|
+
<di:waypoint x="280" y="170" />
|
54
|
+
<di:waypoint x="332" y="170" />
|
55
|
+
</bpmndi:BPMNEdge>
|
56
|
+
</bpmndi:BPMNPlane>
|
57
|
+
</bpmndi:BPMNDiagram>
|
58
|
+
</bpmn:definitions>
|
@@ -0,0 +1,52 @@
|
|
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="SimpleExternalTask_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="SimpleExternalTask" processRef="SimpleExternalTask_Process" />
|
5
|
+
</bpmn:collaboration>
|
6
|
+
<bpmn:process id="SimpleExternalTask_Process" name="SimpleExternalTask" isExecutable="true">
|
7
|
+
<bpmn:laneSet />
|
8
|
+
<bpmn:startEvent id="StartEvent_1" name="Start">
|
9
|
+
<bpmn:outgoing>Flow_0mxbplj</bpmn:outgoing>
|
10
|
+
</bpmn:startEvent>
|
11
|
+
<bpmn:sequenceFlow id="Flow_0mxbplj" sourceRef="StartEvent_1" targetRef="Activity_0x9f550" />
|
12
|
+
<bpmn:endEvent id="Event_1rk4dbx" name="Ende">
|
13
|
+
<bpmn:incoming>Flow_08pua70</bpmn:incoming>
|
14
|
+
</bpmn:endEvent>
|
15
|
+
<bpmn:sequenceFlow id="Flow_08pua70" sourceRef="Activity_0x9f550" targetRef="Event_1rk4dbx" />
|
16
|
+
<bpmn:serviceTask id="Activity_0x9f550" name="Do Simple ETW" camunda:type="external" camunda:topic="the_simple_topic">
|
17
|
+
<bpmn:incoming>Flow_0mxbplj</bpmn:incoming>
|
18
|
+
<bpmn:outgoing>Flow_08pua70</bpmn:outgoing>
|
19
|
+
</bpmn:serviceTask>
|
20
|
+
</bpmn:process>
|
21
|
+
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
22
|
+
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1cidyxu">
|
23
|
+
<bpmndi:BPMNShape id="Participant_0px403d_di" bpmnElement="Participant_0px403d" isHorizontal="true">
|
24
|
+
<dc:Bounds x="5" y="4" width="485" height="346" />
|
25
|
+
</bpmndi:BPMNShape>
|
26
|
+
<bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1">
|
27
|
+
<dc:Bounds x="92" y="152" width="36" height="36" />
|
28
|
+
<bpmndi:BPMNLabel>
|
29
|
+
<dc:Bounds x="98" y="195" width="24" height="14" />
|
30
|
+
</bpmndi:BPMNLabel>
|
31
|
+
</bpmndi:BPMNShape>
|
32
|
+
<bpmndi:BPMNShape id="Event_1rk4dbx_di" bpmnElement="Event_1rk4dbx">
|
33
|
+
<dc:Bounds x="332" y="152" width="36" height="36" />
|
34
|
+
<bpmndi:BPMNLabel>
|
35
|
+
<dc:Bounds x="337" y="195" width="26" height="14" />
|
36
|
+
</bpmndi:BPMNLabel>
|
37
|
+
</bpmndi:BPMNShape>
|
38
|
+
<bpmndi:BPMNShape id="Activity_15mr980_di" bpmnElement="Activity_0x9f550">
|
39
|
+
<dc:Bounds x="180" y="130" width="100" height="80" />
|
40
|
+
<bpmndi:BPMNLabel />
|
41
|
+
</bpmndi:BPMNShape>
|
42
|
+
<bpmndi:BPMNEdge id="Flow_0mxbplj_di" bpmnElement="Flow_0mxbplj">
|
43
|
+
<di:waypoint x="128" y="170" />
|
44
|
+
<di:waypoint x="180" y="170" />
|
45
|
+
</bpmndi:BPMNEdge>
|
46
|
+
<bpmndi:BPMNEdge id="Flow_08pua70_di" bpmnElement="Flow_08pua70">
|
47
|
+
<di:waypoint x="280" y="170" />
|
48
|
+
<di:waypoint x="332" y="170" />
|
49
|
+
</bpmndi:BPMNEdge>
|
50
|
+
</bpmndi:BPMNPlane>
|
51
|
+
</bpmndi:BPMNDiagram>
|
52
|
+
</bpmn:definitions>
|
File without changes
|
File without changes
|
File without changes
|