@5minds/node-red-contrib-processcube 0.10.3-feature-e75e2f-lybzmwlq → 0.10.3-feature-918efd-lyeczafy
Sign up to get free protection for your applications and to get access to all the features.
- package/.processcube/authority/config/config.json +36 -0
- package/.processcube/authority/config/upeSeedingData.json +12 -0
- package/Dockerfile +1 -4
- package/docker-compose.yml +12 -0
- package/externaltask-input.js +7 -2
- package/message-event-trigger.js +2 -1
- package/nodered/node-red-contrib-processcube-flows.json +196 -2357
- package/nodered/node-red-contrib-processcube-flows_cred.json +3 -0
- package/nodered/package.json +1 -4
- package/nodered/settings.js +2 -2
- package/package.json +4 -2
- package/process-start.js +1 -1
- package/processcube-engine-config.html +12 -0
- package/processcube-engine-config.js +115 -1
- package/processdefinition-query.js +6 -2
- package/processes/NodeRedExternalTask.bpmn +12 -26
- package/processinstance-query.js +2 -2
- package/signal-event-trigger.js +2 -1
- package/usertask-finished-listener.js +23 -8
- package/usertask-input.js +5 -2
- package/usertask-new-listener.js +24 -8
- package/usertask-output.js +1 -1
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"issuerUrl": "http://authority:11560",
|
3
|
+
"applicationPort": 11560,
|
4
|
+
"development": {
|
5
|
+
"builtInReactDevServer": false,
|
6
|
+
"detailedErrors": true,
|
7
|
+
"disableHttpsEnforcement": true,
|
8
|
+
"enableLocalhostImplicit": true,
|
9
|
+
"fixWrongHostnames": true
|
10
|
+
},
|
11
|
+
"studio": true,
|
12
|
+
"engines": [
|
13
|
+
{
|
14
|
+
"clientId": "5minds_engine",
|
15
|
+
"clientSecret": "5minds_engine"
|
16
|
+
}
|
17
|
+
],
|
18
|
+
"database": {
|
19
|
+
"dialect": "sqlite",
|
20
|
+
"storage": "storage/database.sqlite",
|
21
|
+
"logging": false
|
22
|
+
},
|
23
|
+
"extensions": {
|
24
|
+
"path": "/app/extensions",
|
25
|
+
"configs": {
|
26
|
+
"username_password": {}
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"externalTaskWorkers": [
|
30
|
+
{
|
31
|
+
"clientId": "nodered",
|
32
|
+
"clientSecret": "nodered",
|
33
|
+
"scope": "engine_etw engine_read engine_write"
|
34
|
+
}
|
35
|
+
]
|
36
|
+
}
|
package/Dockerfile
CHANGED
@@ -12,11 +12,8 @@ WORKDIR /data
|
|
12
12
|
|
13
13
|
COPY --from=builder /src/node-red-contrib-processcube /src/node-red-contrib-processcube
|
14
14
|
|
15
|
-
RUN npm install /src/node-red-contrib-processcube/
|
16
|
-
|
17
15
|
COPY nodered/package.json package.json
|
18
16
|
RUN npm install
|
19
17
|
|
20
|
-
COPY nodered/node-red-contrib-processcube-flows.json node-red-contrib-processcube-flows.json
|
21
18
|
|
22
|
-
ENTRYPOINT ["./node_modules/.bin/node-red", "--flowFile", "/
|
19
|
+
ENTRYPOINT ["./node_modules/.bin/node-red", "--flowFile", "/nodered/node-red-contrib-processcube-flows.json", "--settings", "/nodered/settings.js"]
|
package/docker-compose.yml
CHANGED
@@ -18,4 +18,16 @@ services:
|
|
18
18
|
- 8000:8000
|
19
19
|
volumes:
|
20
20
|
- ./processes:/processes:ro
|
21
|
+
environment:
|
22
|
+
iam__baseUrl: http://authority:11560
|
23
|
+
iam__allowAnonymousRootAccess: true
|
21
24
|
command: --seed-dir=/processes --port 8000
|
25
|
+
|
26
|
+
authority:
|
27
|
+
image: 5minds/processcube_authority:3.0.4
|
28
|
+
ports:
|
29
|
+
- 11560:11560
|
30
|
+
volumes:
|
31
|
+
- ./.processcube/authority/config:/etc/authority/config:ro
|
32
|
+
environment:
|
33
|
+
UPE_SEED_PATH: /etc/authority/config/upeSeedingData.json
|
package/externaltask-input.js
CHANGED
@@ -76,9 +76,14 @@ module.exports = function(RED) {
|
|
76
76
|
node.send({topic: externalTask.topic, payload: payload, externalTaskId: externalTask.flowNodeInstanceId});
|
77
77
|
});
|
78
78
|
},
|
79
|
-
).then(externalTaskWorker => {
|
79
|
+
).then(async externalTaskWorker => {
|
80
80
|
node.status({fill: "blue", shape: "ring", text: "subcribed"});
|
81
|
-
|
81
|
+
|
82
|
+
externalTaskWorker.identity = node.server.identity;
|
83
|
+
node.server.registerOnIdentityChanged((identity) => {
|
84
|
+
externalTaskWorker.identity = identity;
|
85
|
+
});
|
86
|
+
await externalTaskWorker.start();
|
82
87
|
|
83
88
|
node.on("close", async () => {
|
84
89
|
try {
|
package/message-event-trigger.js
CHANGED