@5minds/node-red-contrib-processcube 1.5.2-debug-ddec88-m35qz372 → 1.5.2-debug-38bc89-m35vzrqa
Sign up to get free protection for your applications and to get access to all the features.
package/externaltask-input.js
CHANGED
@@ -98,7 +98,7 @@ module.exports = function (RED) {
|
|
98
98
|
task: RED.util.encodeObject(externalTask),
|
99
99
|
payload: payload,
|
100
100
|
flowNodeInstanceId: externalTask.flowNodeInstanceId,
|
101
|
-
processInstanceId: externalTask.processInstanceId
|
101
|
+
processInstanceId: externalTask.processInstanceId,
|
102
102
|
};
|
103
103
|
|
104
104
|
node.log(
|
@@ -110,10 +110,16 @@ module.exports = function (RED) {
|
|
110
110
|
};
|
111
111
|
|
112
112
|
client.externalTasks
|
113
|
-
.subscribeToExternalTaskTopic(
|
113
|
+
.subscribeToExternalTaskTopic(
|
114
|
+
config.topic,
|
115
|
+
etwCallback,
|
116
|
+
RED.util.evaluateNodeProperty(config.workerConfig, 'json', node)
|
117
|
+
)
|
114
118
|
.then(async (externalTaskWorker) => {
|
115
119
|
node.status({ fill: 'blue', shape: 'ring', text: 'subcribed' });
|
116
120
|
|
121
|
+
node.log('engine_identiy777', engine.identity);
|
122
|
+
node.log(engine.identity);
|
117
123
|
externalTaskWorker.identity = engine.identity;
|
118
124
|
engine.registerOnIdentityChanged((identity) => {
|
119
125
|
externalTaskWorker.identity = identity;
|
package/package.json
CHANGED
@@ -6,7 +6,7 @@ const DELAY_FACTOR = 0.85;
|
|
6
6
|
|
7
7
|
module.exports = function (RED) {
|
8
8
|
function ProcessCubeEngineNode(n) {
|
9
|
-
|
9
|
+
node.log('node-redeploy777');
|
10
10
|
RED.nodes.createNode(this, n);
|
11
11
|
const node = this;
|
12
12
|
const identityChangedCallbacks = [];
|
@@ -16,8 +16,10 @@ module.exports = function (RED) {
|
|
16
16
|
this.credentials.clientId = RED.util.evaluateNodeProperty(n.clientId, n.clientIdType, node);
|
17
17
|
this.credentials.clientSecret = RED.util.evaluateNodeProperty(n.clientSecret, n.clientSecretType, node);
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
node.log('clientId777');
|
20
|
+
node.log(this.credentials.clientId);
|
21
|
+
node.log('clientSecret777');
|
22
|
+
node.log(this.credentials.clientSecret);
|
21
23
|
|
22
24
|
this.registerOnIdentityChanged = function (callback) {
|
23
25
|
identityChangedCallbacks.push(callback);
|
@@ -48,7 +50,7 @@ module.exports = function (RED) {
|
|
48
50
|
});
|
49
51
|
|
50
52
|
if (this.credentials.clientId && this.credentials.clientSecret) {
|
51
|
-
|
53
|
+
node.log('credentials_set777');
|
52
54
|
this.engineClient = new engine_client.EngineClient(this.url);
|
53
55
|
|
54
56
|
this.engineClient.applicationInfo
|
@@ -69,7 +71,7 @@ module.exports = function (RED) {
|
|
69
71
|
node.error(reason);
|
70
72
|
});
|
71
73
|
} else {
|
72
|
-
|
74
|
+
node.log('credentials_NOT_set777');
|
73
75
|
this.engineClient = new engine_client.EngineClient(this.url);
|
74
76
|
}
|
75
77
|
}
|