@5minds/node-red-contrib-processcube 1.1.4-feature-7fe78b-m04wj3x0 → 1.1.4-feature-3050c0-m04ysmbf

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.1.4-feature-7fe78b-m04wj3x0",
3
+ "version": "1.1.4-feature-3050c0-m04ysmbf",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {
@@ -4,9 +4,10 @@
4
4
  color: '#02AFD6',
5
5
  defaults: {
6
6
  name: { value: '' },
7
+ engine: { value: '', type: 'processcube-engine-config' },
7
8
  processmodel: { value: '', required: false },
8
9
  },
9
- inputs: 1,
10
+ inputs: 0,
10
11
  outputs: 1,
11
12
  icon: 'font-awesome/fa-sign-in',
12
13
  label: function () {
@@ -20,6 +21,10 @@
20
21
  <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
21
22
  <input type="text" id="node-input-name" placeholder="Name" />
22
23
  </div>
24
+ <div class="form-row">
25
+ <label for="node-input-engine"><i class="fa fa-tag"></i> Engine-URL</label>
26
+ <input type="text" id="node-input-engine" placeholder="http://engine:8000" />
27
+ </div>
23
28
  <div class="form-row">
24
29
  <label for="node-input-processmodel"><i class="fa fa-tag"></i> Processmodel</label>
25
30
  <input type="text" id="node-input-processmodel" placeholder="ID of Processmodel" />
@@ -17,7 +17,7 @@ module.exports = function (RED) {
17
17
  let subscription;
18
18
 
19
19
  if (node.engine.isIdentityReady()) {
20
- subscription = await client.notifications.onProcessStarted(
20
+ subscription = await client.notification.onProcessStarted(
21
21
  (processNotification) => {
22
22
  // node.send({
23
23
  // payload: {
@@ -40,7 +40,7 @@ module.exports = function (RED) {
40
40
 
41
41
  currentIdentity = identity;
42
42
 
43
- subscription = await client.notifications.onProcessStarted(
43
+ subscription = await client.notification.onProcessStarted(
44
44
  (processNotification) => {
45
45
  // node.send({
46
46
  // payload: {