@5minds/node-red-contrib-processcube 1.5.10-develop-a2fb08-m42pvg54 → 1.5.10-develop-447144-m4b9rflo
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/package.json +1 -1
- package/process-start.js +10 -1
package/package.json
CHANGED
package/process-start.js
CHANGED
@@ -4,7 +4,6 @@ module.exports = function (RED) {
|
|
4
4
|
var node = this;
|
5
5
|
|
6
6
|
node.on('input', function (msg) {
|
7
|
-
|
8
7
|
const initialToken = RED.util.encodeObject(msg.payload);
|
9
8
|
|
10
9
|
const startParameters = {
|
@@ -13,6 +12,16 @@ module.exports = function (RED) {
|
|
13
12
|
initialToken: initialToken,
|
14
13
|
};
|
15
14
|
|
15
|
+
if (!startParameters.processModelId) {
|
16
|
+
node.error('No processModelId configured.');
|
17
|
+
return;
|
18
|
+
}
|
19
|
+
|
20
|
+
if (!startParameters.startEventId) {
|
21
|
+
node.error('No startEventId configured.');
|
22
|
+
return;
|
23
|
+
}
|
24
|
+
|
16
25
|
const engine = RED.nodes.getNode(config.engine);
|
17
26
|
const client = engine.engineClient;
|
18
27
|
|