@5minds/node-red-contrib-processcube 1.7.5-develop-2217df-m6qhi9ff → 1.7.5-feature-f9d61e-m6l18es1
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 +1 -1
- package/.processcube/nodered/config.js +2 -3
- package/.processcube/nodered/settings.js +1 -1
- package/doc_generator/generator.js +5 -5
- package/doc_generator/generator_with_swagger.js +80 -78
- package/endevent-finished-listener.html +16 -16
- package/externaltask-error.html +11 -11
- package/externaltask-error.js +3 -1
- package/externaltask-event-listener.html +9 -9
- package/externaltask-input.html +26 -26
- package/externaltask-input.js +6 -7
- package/externaltask-output.html +7 -7
- package/message-event-trigger.html +8 -8
- package/message-event-trigger.js +2 -2
- package/package.json +5 -2
- package/process-event-listener.html +74 -74
- package/process-event-listener.js +1 -2
- package/process-start.html +12 -12
- package/process-start.js +3 -3
- package/process-terminate.html +9 -9
- package/process-terminate.js +1 -1
- package/processcube-engine-config.html +8 -8
- package/processdefinition-deploy.html +9 -9
- package/processdefinition-deploy.js +2 -2
- package/processdefinition-query.html +139 -140
- package/processdefinition-query.js +1 -1
- package/processinstance-delete.html +48 -46
- package/processinstance-delete.js +20 -11
- package/processinstance-query.html +120 -119
- package/processinstance-query.js +2 -2
- package/signal-event-trigger.html +8 -9
- package/signal-event-trigger.js +2 -2
- package/usertask-event-listener.html +126 -127
- package/usertask-input.html +126 -125
- package/usertask-input.js +2 -2
- package/usertask-output.html +7 -7
- package/usertask-output.js +4 -3
- package/wait-for-usertask.html +173 -164
- package/wait-for-usertask.js +34 -27
@@ -6,7 +6,7 @@
|
|
6
6
|
name: { value: '' },
|
7
7
|
engine: { value: '', type: 'processcube-engine-config' },
|
8
8
|
processmodel: { value: '', required: false },
|
9
|
-
eventtype: { value: '', required: true},
|
9
|
+
eventtype: { value: '', required: true },
|
10
10
|
query: { value: '{}' },
|
11
11
|
query_type: { value: 'json' },
|
12
12
|
},
|
@@ -27,7 +27,7 @@
|
|
27
27
|
},
|
28
28
|
oneditsave: function () {
|
29
29
|
if ($('#node-input-query').typedInput('value') == '') {
|
30
|
-
$('#node-input-query').typedInput('value', '{}')
|
30
|
+
$('#node-input-query').typedInput('value', '{}');
|
31
31
|
}
|
32
32
|
(this.query = $('#node-input-query').typedInput('value')),
|
33
33
|
(this.query_type = $('#node-input-query').typedInput('type'));
|
@@ -71,101 +71,101 @@
|
|
71
71
|
</script>
|
72
72
|
|
73
73
|
<script type="text/markdown" data-help-name="process-event-listener">
|
74
|
-
A node which listens for events triggered by processes
|
74
|
+
A node which listens for events triggered by processes
|
75
75
|
|
76
|
-
## Outputs
|
76
|
+
## Outputs
|
77
77
|
|
78
|
-
### starting
|
78
|
+
### starting
|
79
79
|
|
80
|
-
: processInstanceId (string): The unique identifier for the process instance.
|
81
|
-
: processModelId (string): The id of the process model.
|
82
|
-
: processInstance (Object): An Object representing the process instance data.
|
83
|
-
: action (string): The event that occured.
|
84
|
-
: type (string): The target of the event.
|
80
|
+
: processInstanceId (string): The unique identifier for the process instance.
|
81
|
+
: processModelId (string): The id of the process model.
|
82
|
+
: processInstance (Object): An Object representing the process instance data.
|
83
|
+
: action (string): The event that occured.
|
84
|
+
: type (string): The target of the event.
|
85
85
|
|
86
|
-
### started
|
86
|
+
### started
|
87
87
|
|
88
|
-
: processInstanceId (string): The unique identifier for the process instance.
|
89
|
-
: processModelId (string): The id of the process model.
|
90
|
-
: flowNodeId (string): The id of the flowNode the process was started with.
|
91
|
-
: token (Object): The start token of the process instance.
|
92
|
-
: processInstance (Object): An Object representing the process instance data.
|
93
|
-
: action (string): The event that occured.
|
94
|
-
: type (string): The target of the event.
|
88
|
+
: processInstanceId (string): The unique identifier for the process instance.
|
89
|
+
: processModelId (string): The id of the process model.
|
90
|
+
: flowNodeId (string): The id of the flowNode the process was started with.
|
91
|
+
: token (Object): The start token of the process instance.
|
92
|
+
: processInstance (Object): An Object representing the process instance data.
|
93
|
+
: action (string): The event that occured.
|
94
|
+
: type (string): The target of the event.
|
95
95
|
|
96
|
-
### resumed
|
96
|
+
### resumed
|
97
97
|
|
98
|
-
: processInstanceId (string): The unique identifier for the process instance.
|
99
|
-
: processModelId (string): The id of the process model.
|
100
|
-
: token (Object): The current token of the process instance.
|
101
|
-
: processInstance (Object): An Object representing the process instance data.
|
102
|
-
: action (string): The event that occured.
|
103
|
-
: type (string): The target of the event.
|
98
|
+
: processInstanceId (string): The unique identifier for the process instance.
|
99
|
+
: processModelId (string): The id of the process model.
|
100
|
+
: token (Object): The current token of the process instance.
|
101
|
+
: processInstance (Object): An Object representing the process instance data.
|
102
|
+
: action (string): The event that occured.
|
103
|
+
: type (string): The target of the event.
|
104
104
|
|
105
|
-
### finished
|
105
|
+
### finished
|
106
106
|
|
107
|
-
: processInstanceId (string): The unique identifier for the process instance.
|
108
|
-
: processModelId (string): The id of the process model.
|
109
|
-
: flowNodeId (string): The id of the flowNode the process was finished with.
|
110
|
-
: token (Object): The end token of the process instance.
|
111
|
-
: processInstance (Object): An Object representing the process instance data.
|
112
|
-
: action (string): The event that occured.
|
113
|
-
: type (string): The target of the event.
|
107
|
+
: processInstanceId (string): The unique identifier for the process instance.
|
108
|
+
: processModelId (string): The id of the process model.
|
109
|
+
: flowNodeId (string): The id of the flowNode the process was finished with.
|
110
|
+
: token (Object): The end token of the process instance.
|
111
|
+
: processInstance (Object): An Object representing the process instance data.
|
112
|
+
: action (string): The event that occured.
|
113
|
+
: type (string): The target of the event.
|
114
114
|
|
115
|
-
### terminated
|
115
|
+
### terminated
|
116
116
|
|
117
|
-
: processInstanceId (string): The unique identifier for the process instance.
|
118
|
-
: processModelId (string): The id of the process model.
|
119
|
-
: token (Object): The current token of the process instance.
|
120
|
-
: processInstance (Object): An Object representing the process instance data.
|
121
|
-
: action (string): The event that occured.
|
122
|
-
: type (string): The target of the event.
|
117
|
+
: processInstanceId (string): The unique identifier for the process instance.
|
118
|
+
: processModelId (string): The id of the process model.
|
119
|
+
: token (Object): The current token of the process instance.
|
120
|
+
: processInstance (Object): An Object representing the process instance data.
|
121
|
+
: action (string): The event that occured.
|
122
|
+
: type (string): The target of the event.
|
123
123
|
|
124
|
-
### error
|
124
|
+
### error
|
125
125
|
|
126
|
-
: processInstanceId (string): The unique identifier for the process instance.
|
127
|
-
: processModelId (string): The id of the process model.
|
128
|
-
: token (Object): The current token of the process instance.
|
129
|
-
: processInstance (Object): An Object representing the process instance data.
|
130
|
-
: action (string): The event that occured.
|
131
|
-
: type (string): The target of the event.
|
126
|
+
: processInstanceId (string): The unique identifier for the process instance.
|
127
|
+
: processModelId (string): The id of the process model.
|
128
|
+
: token (Object): The current token of the process instance.
|
129
|
+
: processInstance (Object): An Object representing the process instance data.
|
130
|
+
: action (string): The event that occured.
|
131
|
+
: type (string): The target of the event.
|
132
132
|
|
133
|
-
### owner-changed
|
133
|
+
### owner-changed
|
134
134
|
|
135
|
-
: processInstanceId (string): The unique identifier for the process instance.
|
136
|
-
: processModelId (string): The id of the process model.
|
137
|
-
: processInstance (Object): An Object representing the process instance data.
|
138
|
-
: action (string): The event that occured.
|
139
|
-
: type (string): The target of the event.
|
135
|
+
: processInstanceId (string): The unique identifier for the process instance.
|
136
|
+
: processModelId (string): The id of the process model.
|
137
|
+
: processInstance (Object): An Object representing the process instance data.
|
138
|
+
: action (string): The event that occured.
|
139
|
+
: type (string): The target of the event.
|
140
140
|
|
141
|
-
### instances-deleted
|
141
|
+
### instances-deleted
|
142
142
|
|
143
|
-
: processInstanceId (string): The unique identifier for the process instance.
|
144
|
-
: processModelId (string): The id of the process model.
|
145
|
-
: processInstance (Object): An Object representing the process instance data.
|
146
|
-
: action (string): The event that occured.
|
147
|
-
: type (string): The target of the event.
|
143
|
+
: processInstanceId (string): The unique identifier for the process instance.
|
144
|
+
: processModelId (string): The id of the process model.
|
145
|
+
: processInstance (Object): An Object representing the process instance data.
|
146
|
+
: action (string): The event that occured.
|
147
|
+
: type (string): The target of the event.
|
148
148
|
|
149
|
-
### is-executable-changed
|
149
|
+
### is-executable-changed
|
150
150
|
|
151
|
-
: processModelId (string): The id of the process model.
|
152
|
-
: action (string): The event that occured.
|
153
|
-
: type (string): The target of the event.
|
151
|
+
: processModelId (string): The id of the process model.
|
152
|
+
: action (string): The event that occured.
|
153
|
+
: type (string): The target of the event.
|
154
154
|
|
155
|
-
### deployed
|
155
|
+
### deployed
|
156
156
|
|
157
|
-
: processModelId (string): The id of the process model.
|
158
|
-
: action (string): The event that occured.
|
159
|
-
: type (string): The target of the event.
|
157
|
+
: processModelId (string): The id of the process model.
|
158
|
+
: action (string): The event that occured.
|
159
|
+
: type (string): The target of the event.
|
160
160
|
|
161
|
-
### undeployed
|
161
|
+
### undeployed
|
162
162
|
|
163
|
-
: processModelId (string): The id of the process model.
|
164
|
-
: action (string): The event that occured.
|
165
|
-
: type (string): The target of the event.
|
163
|
+
: processModelId (string): The id of the process model.
|
164
|
+
: action (string): The event that occured.
|
165
|
+
: type (string): The target of the event.
|
166
166
|
|
167
|
-
### References
|
167
|
+
### References
|
168
168
|
|
169
|
-
-
|
170
|
-
-
|
169
|
+
- [The ProcessCube© Developer Network](https://processcube.io) - All documentation for the ProcessCube© platform
|
170
|
+
- [ProcessCube© LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube©
|
171
171
|
</script>
|
@@ -53,7 +53,6 @@ module.exports = function (RED) {
|
|
53
53
|
} catch (error) {
|
54
54
|
node.error(error, {});
|
55
55
|
}
|
56
|
-
|
57
56
|
});
|
58
57
|
case 'started':
|
59
58
|
return await client.notification.onProcessStarted(async (processNotification) => {
|
@@ -292,7 +291,7 @@ module.exports = function (RED) {
|
|
292
291
|
case 'is-executable-changed':
|
293
292
|
return await client.notification.onProcessIsExecutableChanged((processNotification) => {
|
294
293
|
node.log(
|
295
|
-
'processNotification (is-executable-changed): ' + JSON.stringify(processNotification)
|
294
|
+
'processNotification (is-executable-changed): ' + JSON.stringify(processNotification),
|
296
295
|
);
|
297
296
|
|
298
297
|
if (config.processmodel != '' && config.processmodel != processNotification.processModelId)
|
package/process-start.html
CHANGED
@@ -37,23 +37,23 @@
|
|
37
37
|
</script>
|
38
38
|
|
39
39
|
<script type="text/markdown" data-help-name="process-start">
|
40
|
-
Start a new instance of a process model in the ProcessCube.
|
40
|
+
Start a new instance of a process model in the ProcessCube.
|
41
41
|
|
42
|
-
The `processModelId` and `startEventId` can be set in the message object to override the configured values.
|
42
|
+
The `processModelId` and `startEventId` can be set in the message object to override the configured values.
|
43
43
|
|
44
|
-
## Inputs
|
44
|
+
## Inputs
|
45
45
|
|
46
|
-
: payload (Object) : Will be used as the start token for the process.
|
47
|
-
: processModelId (String) : Will be used as the process model and override the configured `Processmodel`.
|
48
|
-
: startEventId (String) : Will be used as the start event and override the configured `Startevent`.
|
46
|
+
: payload (Object) : Will be used as the start token for the process.
|
47
|
+
: processModelId (String) : Will be used as the process model and override the configured `Processmodel`.
|
48
|
+
: startEventId (String) : Will be used as the start event and override the configured `Startevent`.
|
49
49
|
|
50
|
-
## Outputs
|
50
|
+
## Outputs
|
51
51
|
|
52
|
-
: processInstanceId (string) : The unique identifier of the started process instance.
|
53
|
-
: correlationId (string) : The unique correlation identifier of the started process instance.
|
52
|
+
: processInstanceId (string) : The unique identifier of the started process instance.
|
53
|
+
: correlationId (string) : The unique correlation identifier of the started process instance.
|
54
54
|
|
55
|
-
### References
|
55
|
+
### References
|
56
56
|
|
57
|
-
-
|
58
|
-
-
|
57
|
+
- [The ProcessCube© Developer Network](https://processcube.io) - All documentation for the ProcessCube© platform
|
58
|
+
- [ProcessCube© LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube©
|
59
59
|
</script>
|
package/process-start.js
CHANGED
@@ -12,9 +12,9 @@ module.exports = function (RED) {
|
|
12
12
|
// remote msg and format from result
|
13
13
|
if (initialToken) {
|
14
14
|
delete initialToken.msg;
|
15
|
-
delete initialToken.format;
|
15
|
+
delete initialToken.format;
|
16
16
|
}
|
17
|
-
}
|
17
|
+
}
|
18
18
|
|
19
19
|
const startParameters = {
|
20
20
|
processModelId: msg.processModelId || config.processmodel,
|
@@ -40,7 +40,7 @@ module.exports = function (RED) {
|
|
40
40
|
return;
|
41
41
|
}
|
42
42
|
|
43
|
-
const isUser = !!msg._client?.user
|
43
|
+
const isUser = !!msg._client?.user;
|
44
44
|
const identity = isUser ? { userId: msg._client.user.id, token: msg._client.user.accessToken } : null;
|
45
45
|
|
46
46
|
client.processDefinitions
|
package/process-terminate.html
CHANGED
@@ -27,19 +27,19 @@
|
|
27
27
|
</script>
|
28
28
|
|
29
29
|
<script type="text/markdown" data-help-name="process-terminate">
|
30
|
-
Terminate an instance of a process model in the ProcessCube.
|
30
|
+
Terminate an instance of a process model in the ProcessCube.
|
31
31
|
|
32
|
-
## Configs
|
32
|
+
## Configs
|
33
33
|
|
34
|
-
: name (string): name of the node
|
35
|
-
: engine (string): the engine to connect to
|
34
|
+
: name (string): name of the node
|
35
|
+
: engine (string): the engine to connect to
|
36
36
|
|
37
|
-
## Outputs
|
37
|
+
## Outputs
|
38
38
|
|
39
|
-
: payload (string): The id of the processinstance that was terminated.
|
39
|
+
: payload (string): The id of the processinstance that was terminated.
|
40
40
|
|
41
|
-
### References
|
41
|
+
### References
|
42
42
|
|
43
|
-
-
|
44
|
-
-
|
43
|
+
- [The ProcessCube© Developer Network](https://processcube.io) - All documentation for the ProcessCube© platform
|
44
|
+
- [ProcessCube© LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube©
|
45
45
|
</script>
|
package/process-terminate.js
CHANGED
@@ -6,7 +6,7 @@ module.exports = function (RED) {
|
|
6
6
|
node.on('input', function (msg) {
|
7
7
|
node.engine = RED.nodes.getNode(config.engine);
|
8
8
|
const client = node.engine.engineClient;
|
9
|
-
const isUser = !!msg._client?.user
|
9
|
+
const isUser = !!msg._client?.user;
|
10
10
|
const userIdentity = isUser ? { userId: msg._client.user.id, token: msg._client.user.accessToken } : null;
|
11
11
|
|
12
12
|
if (!client) {
|
@@ -71,16 +71,16 @@
|
|
71
71
|
</script>
|
72
72
|
|
73
73
|
<script type="text/markdown" data-help-name="processcube-engine-config">
|
74
|
-
The configuration for the ProcessCube engine.
|
74
|
+
The configuration for the ProcessCube engine.
|
75
75
|
|
76
|
-
## Inputs
|
76
|
+
## Inputs
|
77
77
|
|
78
|
-
: url (String) : The URL of the ProcessCube engine.
|
79
|
-
: clientId (String) : The client id for the ProcessCube engine.
|
80
|
-
: clientSecret (String) : The client secret for the ProcessCube engine.
|
78
|
+
: url (String) : The URL of the ProcessCube engine.
|
79
|
+
: clientId (String) : The client id for the ProcessCube engine.
|
80
|
+
: clientSecret (String) : The client secret for the ProcessCube engine.
|
81
81
|
|
82
|
-
### References
|
82
|
+
### References
|
83
83
|
|
84
|
-
-
|
85
|
-
-
|
84
|
+
- [The ProcessCube© Developer Network](https://processcube.io) - All documentation for the ProcessCube© platform
|
85
|
+
- [ProcessCube© LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube©
|
86
86
|
</script>
|
@@ -11,7 +11,7 @@
|
|
11
11
|
icon: 'processdefinition_deploy.svg',
|
12
12
|
label: function () {
|
13
13
|
return this.name || 'processdefinition-deploy';
|
14
|
-
}
|
14
|
+
},
|
15
15
|
});
|
16
16
|
</script>
|
17
17
|
|
@@ -27,18 +27,18 @@
|
|
27
27
|
</script>
|
28
28
|
|
29
29
|
<script type="text/markdown" data-help-name="processdefinition-deploy">
|
30
|
-
A node to deploy process definition to the ProcessCube Engine.
|
30
|
+
A node to deploy process definition to the ProcessCube Engine.
|
31
31
|
|
32
|
-
## Inputs
|
32
|
+
## Inputs
|
33
33
|
|
34
|
-
: payload (String) : XML of the bpmn file
|
34
|
+
: payload (String) : XML of the bpmn file
|
35
35
|
|
36
|
-
## Outputs
|
36
|
+
## Outputs
|
37
37
|
|
38
|
-
: payload (String) : XML of the bpmn file
|
38
|
+
: payload (String) : XML of the bpmn file
|
39
39
|
|
40
|
-
### References
|
40
|
+
### References
|
41
41
|
|
42
|
-
-
|
43
|
-
-
|
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
44
|
</script>
|
@@ -6,14 +6,14 @@ module.exports = function (RED) {
|
|
6
6
|
node.on('input', function (msg) {
|
7
7
|
node.engine = RED.nodes.getNode(config.engine);
|
8
8
|
const client = node.engine.engineClient;
|
9
|
-
const isUser = !!msg._client?.user
|
9
|
+
const isUser = !!msg._client?.user;
|
10
10
|
const userIdentity = isUser ? { userId: msg._client.user.id, token: msg._client.user.accessToken } : null;
|
11
11
|
|
12
12
|
if (!client) {
|
13
13
|
node.error('No engine configured.');
|
14
14
|
return;
|
15
15
|
}
|
16
|
-
|
16
|
+
|
17
17
|
client.processDefinitions
|
18
18
|
.persistProcessDefinitions(msg.payload, { overwriteExisting: true, identity: userIdentity })
|
19
19
|
.then(() => {
|