@5minds/node-red-contrib-processcube 0.3.5-feature-d317c3-lxj45fct → 0.3.5-feature-c463bd-lxjfh8vh

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.
@@ -7,9 +7,13 @@ module.exports = function(RED) {
7
7
  var eventEmitter = flowContext.get('emitter');
8
8
 
9
9
  node.on('input', function(msg) {
10
-
10
+
11
11
  const externalTaskId = msg.externalTaskId;
12
12
 
13
+ if (!externalTaskId) {
14
+ node.error('Error: The message did not contain the required external task id.', msg);
15
+ }
16
+
13
17
  eventEmitter.emit(`finish-${externalTaskId}`, msg.payload);
14
18
  });
15
19
  }
@@ -1397,7 +1397,8 @@
1397
1397
  ],
1398
1398
  "keys": [
1399
1399
  "payload"
1400
- ]
1400
+ ],
1401
+ "showDescription": false
1401
1402
  },
1402
1403
  {
1403
1404
  "id": "eventNamepath",
@@ -1420,7 +1421,8 @@
1420
1421
  "type": "string",
1421
1422
  "example": "myMessageEvent"
1422
1423
  },
1423
- "keys": null
1424
+ "keys": null,
1425
+ "showDescription": false
1424
1426
  },
1425
1427
  {
1426
1428
  "id": "processInstanceIdquery",
@@ -1443,7 +1445,8 @@
1443
1445
  "type": "string",
1444
1446
  "example": "myProcessInstance_12345678"
1445
1447
  },
1446
- "keys": null
1448
+ "keys": null,
1449
+ "showDescription": false
1447
1450
  }
1448
1451
  ],
1449
1452
  "requestContentType": "application/json",
@@ -1456,7 +1459,8 @@
1456
1459
  "y": 1260,
1457
1460
  "wires": [
1458
1461
  [
1459
- "7c2a437046aa04a4"
1462
+ "7c2a437046aa04a4",
1463
+ "d08b19a18287f7b3"
1460
1464
  ]
1461
1465
  ]
1462
1466
  },
@@ -1465,9 +1469,9 @@
1465
1469
  "type": "http response",
1466
1470
  "z": "a23d2e782beb66f4",
1467
1471
  "name": "",
1468
- "statusCode": "200",
1472
+ "statusCode": "",
1469
1473
  "headers": {},
1470
- "x": 900,
1474
+ "x": 970,
1471
1475
  "y": 1260,
1472
1476
  "wires": []
1473
1477
  },
@@ -1476,7 +1480,7 @@
1476
1480
  "type": "function",
1477
1481
  "z": "a23d2e782beb66f4",
1478
1482
  "name": "set values",
1479
- "func": "msg.openApiToken = \"ZHVtbXlfdG9rZW4=\";\nmsg.eventName = \"SampleEvent\";\nreturn msg;",
1483
+ "func": "msg.openApiToken = \"ZHVtbXlfdG9rZW4=\";\nmsg.eventName = \"sampleEvent\";\nreturn msg;",
1480
1484
  "outputs": 1,
1481
1485
  "timeout": 0,
1482
1486
  "noerr": 0,
@@ -1491,6 +1495,47 @@
1491
1495
  ]
1492
1496
  ]
1493
1497
  },
1498
+ {
1499
+ "id": "d08b19a18287f7b3",
1500
+ "type": "debug",
1501
+ "z": "a23d2e782beb66f4",
1502
+ "name": "debug 19",
1503
+ "active": true,
1504
+ "tosidebar": true,
1505
+ "console": false,
1506
+ "tostatus": false,
1507
+ "complete": "false",
1508
+ "statusVal": "",
1509
+ "statusType": "auto",
1510
+ "x": 980,
1511
+ "y": 1300,
1512
+ "wires": []
1513
+ },
1514
+ {
1515
+ "id": "817de491411fe1e6",
1516
+ "type": "inject",
1517
+ "z": "a23d2e782beb66f4",
1518
+ "name": "",
1519
+ "props": [
1520
+ {
1521
+ "p": "payload"
1522
+ }
1523
+ ],
1524
+ "repeat": "",
1525
+ "crontab": "",
1526
+ "once": false,
1527
+ "onceDelay": 0.1,
1528
+ "topic": "",
1529
+ "payload": "{\"hello\":\"test\"}",
1530
+ "payloadType": "json",
1531
+ "x": 230,
1532
+ "y": 1180,
1533
+ "wires": [
1534
+ [
1535
+ "2cc740aa2cee8a3f"
1536
+ ]
1537
+ ]
1538
+ },
1494
1539
  {
1495
1540
  "id": "ec0be0ef92746967",
1496
1541
  "type": "usertask-input",
@@ -1397,7 +1397,8 @@
1397
1397
  ],
1398
1398
  "keys": [
1399
1399
  "payload"
1400
- ]
1400
+ ],
1401
+ "showDescription": false
1401
1402
  },
1402
1403
  {
1403
1404
  "id": "eventNamepath",
@@ -1420,15 +1421,16 @@
1420
1421
  "type": "string",
1421
1422
  "example": "myMessageEvent"
1422
1423
  },
1423
- "keys": null
1424
+ "keys": null,
1425
+ "showDescription": false
1424
1426
  },
1425
1427
  {
1426
1428
  "id": "processInstanceIdquery",
1427
1429
  "name": "processInstanceId",
1428
1430
  "in": "query",
1429
1431
  "required": false,
1430
- "value": "",
1431
- "isActive": false,
1432
+ "value": "b833c528-bb95-4d09-a08f-f36724edf2db",
1433
+ "isActive": true,
1432
1434
  "type": "str",
1433
1435
  "allowedTypes": [
1434
1436
  "str",
@@ -1443,7 +1445,8 @@
1443
1445
  "type": "string",
1444
1446
  "example": "myProcessInstance_12345678"
1445
1447
  },
1446
- "keys": null
1448
+ "keys": null,
1449
+ "showDescription": false
1447
1450
  }
1448
1451
  ],
1449
1452
  "requestContentType": "application/json",
@@ -1477,7 +1480,7 @@
1477
1480
  "type": "function",
1478
1481
  "z": "a23d2e782beb66f4",
1479
1482
  "name": "set values",
1480
- "func": "msg.openApiToken = \"ZHVtbXlfdG9rZW4=\";\nmsg.eventName = \"SampleEvent\";\nreturn msg;",
1483
+ "func": "msg.openApiToken = \"ZHVtbXlfdG9rZW4=\";\nmsg.eventName = \"sampleEvent\";\nreturn msg;",
1481
1484
  "outputs": 1,
1482
1485
  "timeout": 0,
1483
1486
  "noerr": 0,
@@ -1508,6 +1511,31 @@
1508
1511
  "y": 1300,
1509
1512
  "wires": []
1510
1513
  },
1514
+ {
1515
+ "id": "817de491411fe1e6",
1516
+ "type": "inject",
1517
+ "z": "a23d2e782beb66f4",
1518
+ "name": "",
1519
+ "props": [
1520
+ {
1521
+ "p": "payload"
1522
+ }
1523
+ ],
1524
+ "repeat": "",
1525
+ "crontab": "",
1526
+ "once": false,
1527
+ "onceDelay": 0.1,
1528
+ "topic": "",
1529
+ "payload": "{\"hello\":\"test\"}",
1530
+ "payloadType": "json",
1531
+ "x": 230,
1532
+ "y": 1180,
1533
+ "wires": [
1534
+ [
1535
+ "2cc740aa2cee8a3f"
1536
+ ]
1537
+ ]
1538
+ },
1511
1539
  {
1512
1540
  "id": "ec0be0ef92746967",
1513
1541
  "type": "usertask-input",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "0.3.5-feature-d317c3-lxj45fct",
3
+ "version": "0.3.5-feature-c463bd-lxjfh8vh",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "authors": [