@5minds/node-red-contrib-processcube 1.5.10-feature-e89b67-m4jqa6qs → 1.5.10-feature-d3ca99-m4jqtub3
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/endevent-finished-listener.js +1 -1
- package/package.json +1 -1
- package/process-event-listener.js +8 -8
- package/process-start.js +1 -1
- package/process-terminate.js +1 -1
- package/processcube-engine-config.js +1 -1
- package/processdefinition-query.js +1 -1
- package/processinstance-delete.html +7 -7
- package/processinstance-delete.js +5 -5
- package/signal-event-trigger.js +1 -1
- package/usertask-event-listener.js +1 -1
- package/usertask-input.js +1 -1
- package/usertask-output.js +1 -1
- package/wait-for-usertask.js +2 -2
package/package.json
CHANGED
@@ -68,7 +68,7 @@ module.exports = function (RED) {
|
|
68
68
|
});
|
69
69
|
}
|
70
70
|
} catch (error) {
|
71
|
-
node.error(error);
|
71
|
+
node.error(JSON.stringify(error));
|
72
72
|
}
|
73
73
|
},
|
74
74
|
{ identity: currentIdentity }
|
@@ -111,7 +111,7 @@ module.exports = function (RED) {
|
|
111
111
|
});
|
112
112
|
}
|
113
113
|
} catch (error) {
|
114
|
-
node.error(error);
|
114
|
+
node.error(JSON.stringify(error));
|
115
115
|
}
|
116
116
|
},
|
117
117
|
{ identity: currentIdentity }
|
@@ -152,7 +152,7 @@ module.exports = function (RED) {
|
|
152
152
|
});
|
153
153
|
}
|
154
154
|
} catch (error) {
|
155
|
-
node.error(error);
|
155
|
+
node.error(JSON.stringify(error));
|
156
156
|
}
|
157
157
|
},
|
158
158
|
{ identity: currentIdentity }
|
@@ -194,7 +194,7 @@ module.exports = function (RED) {
|
|
194
194
|
});
|
195
195
|
}
|
196
196
|
} catch (error) {
|
197
|
-
node.error(error);
|
197
|
+
node.error(JSON.stringify(error));
|
198
198
|
}
|
199
199
|
},
|
200
200
|
{ identity: currentIdentity }
|
@@ -234,7 +234,7 @@ module.exports = function (RED) {
|
|
234
234
|
});
|
235
235
|
}
|
236
236
|
} catch (error) {
|
237
|
-
node.error(error);
|
237
|
+
node.error(JSON.stringify(error));
|
238
238
|
}
|
239
239
|
},
|
240
240
|
{ identity: currentIdentity }
|
@@ -275,7 +275,7 @@ module.exports = function (RED) {
|
|
275
275
|
});
|
276
276
|
}
|
277
277
|
} catch (error) {
|
278
|
-
node.error(error);
|
278
|
+
node.error(JSON.stringify(error));
|
279
279
|
}
|
280
280
|
},
|
281
281
|
{ identity: currentIdentity }
|
@@ -315,7 +315,7 @@ module.exports = function (RED) {
|
|
315
315
|
});
|
316
316
|
}
|
317
317
|
} catch (error) {
|
318
|
-
node.error(error);
|
318
|
+
node.error(JSON.stringify(error));
|
319
319
|
}
|
320
320
|
},
|
321
321
|
{ identity: currentIdentity }
|
@@ -355,7 +355,7 @@ module.exports = function (RED) {
|
|
355
355
|
});
|
356
356
|
}
|
357
357
|
} catch (error) {
|
358
|
-
node.error(error);
|
358
|
+
node.error(JSON.stringify(error));
|
359
359
|
}
|
360
360
|
},
|
361
361
|
{ identity: currentIdentity }
|
package/process-start.js
CHANGED
package/process-terminate.js
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
name: { value: '' },
|
7
7
|
engine: { value: '', type: 'processcube-engine-config' },
|
8
8
|
modelid: { value: '' },
|
9
|
-
|
10
|
-
|
9
|
+
time: { value: '', type: 'number' },
|
10
|
+
time_type: { value: 'hours' },
|
11
11
|
},
|
12
12
|
inputs: 1,
|
13
13
|
outputs: 1,
|
@@ -32,12 +32,12 @@
|
|
32
32
|
<input type="text" id="node-input-modelid" />
|
33
33
|
</div>
|
34
34
|
<div class="form-row">
|
35
|
-
<label for="node-input-
|
35
|
+
<label for="node-input-time"><i class="fa fa-tag"></i> Duration</label>
|
36
36
|
<input type="text" id="node-input-time" />
|
37
37
|
</div>
|
38
38
|
<div class="form-row">
|
39
|
-
<label for="node-input-
|
40
|
-
<select id="node-input-
|
39
|
+
<label for="node-input-time_type"><i class="fa fa-sliders"></i> Time Unit</label>
|
40
|
+
<select id="node-input-time_type" style="width: 70%;">
|
41
41
|
<option value="hours">Hours</option>
|
42
42
|
<option value="days">Days</option>
|
43
43
|
</select>
|
@@ -49,8 +49,8 @@ Delete old instances of a process model in the ProcessCube.
|
|
49
49
|
|
50
50
|
## Inputs
|
51
51
|
|
52
|
-
: payload.
|
53
|
-
: payload.
|
52
|
+
: payload.time (number): The number of given time periods.
|
53
|
+
: payload.time_type ('hours' | 'days'): The type of time period to use.
|
54
54
|
|
55
55
|
## Outputs
|
56
56
|
|
@@ -12,13 +12,13 @@ module.exports = function (RED) {
|
|
12
12
|
return;
|
13
13
|
}
|
14
14
|
let timeMultiplier;
|
15
|
-
if (msg.payload.
|
16
|
-
timeMultiplier = msg.payload.
|
15
|
+
if (msg.payload.time_type) {
|
16
|
+
timeMultiplier = msg.payload.time_type == 'hours' ? 1 : 24;
|
17
17
|
} else {
|
18
|
-
timeMultiplier = config.
|
18
|
+
timeMultiplier = config.time_type == 'hours' ? 1 : 24;
|
19
19
|
}
|
20
20
|
|
21
|
-
const timeToUse = msg.payload.
|
21
|
+
const timeToUse = msg.payload.time ? msg.payload.time : config.time;
|
22
22
|
const modelId = msg.payload.processModelId
|
23
23
|
? msg.payload.processModelId != ''
|
24
24
|
? msg.payload.processModelId
|
@@ -48,7 +48,7 @@ module.exports = function (RED) {
|
|
48
48
|
await client.processInstances.deleteProcessInstances(ids, true, engine.identity);
|
49
49
|
node.send(msg);
|
50
50
|
} catch (error) {
|
51
|
-
node.error(error);
|
51
|
+
node.error(JSON.stringify(error));
|
52
52
|
}
|
53
53
|
});
|
54
54
|
}
|
package/signal-event-trigger.js
CHANGED
package/usertask-input.js
CHANGED
package/usertask-output.js
CHANGED
package/wait-for-usertask.js
CHANGED
@@ -43,7 +43,7 @@ module.exports = function (RED) {
|
|
43
43
|
// nothing todo - wait for next notification
|
44
44
|
}
|
45
45
|
} catch (error) {
|
46
|
-
node.error(error);
|
46
|
+
node.error(JSON.stringify(error));
|
47
47
|
}
|
48
48
|
},
|
49
49
|
{ identity: currentIdentity }
|
@@ -75,7 +75,7 @@ module.exports = function (RED) {
|
|
75
75
|
// let the *currentIdentity* be active
|
76
76
|
}
|
77
77
|
} catch (error) {
|
78
|
-
node.error(error);
|
78
|
+
node.error(JSON.stringify(error));
|
79
79
|
}
|
80
80
|
}
|
81
81
|
};
|