This repository was archived by the owner on Jan 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocessinstance-delete-advanced.html
More file actions
82 lines (70 loc) · 3.21 KB
/
processinstance-delete-advanced.html
File metadata and controls
82 lines (70 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<script type="text/javascript">
RED.nodes.registerType('processinstance-delete-advanced', {
category: 'ProcessCube DevOps',
color: '#02AFD6',
defaults: {
name: { value: '' },
engine: { value: '', type: 'processcube-engine-config' },
query: { value: 'payload' },
query_type: { value: 'msg' },
delete_releated: { value: false },
},
inputs: 1,
outputs: 1,
icon: 'font-awesome/fa-sign-in',
label: function () {
return this.name || 'processinstance-delete-advanced';
},
oneditprepare: function () {
$('#node-input-query').typedInput({
default: 'msg',
types: ['msg', 'json'],
});
$('#node-input-query').typedInput('value', this.query);
$('#node-input-query').typedInput('type', this.query_type);
},
oneditsave: function () {
(this.query = $('#node-input-query').typedInput('value')),
(this.query_type = $('#node-input-query').typedInput('type'));
},
});
</script>
<script type="text/html" data-template-name="processinstance-delete-advanced">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name" />
</div>
<div class="form-row">
<label for="node-input-engine"><i class="fa fa-link"></i> Engine-URL</label>
<input type="text" id="node-input-engine" placeholder="Engine-URL" />
</div>
<div class="form-row">
<label for="node-input-query"><i class="fa fa-search"></i> Query</label>
<input type="text" id="node-input-query" />
</div>
<div class="form-row" style="margin-bottom: 3px;">
<label style="width:auto" for="node-input-delete_releated"><i class="fa fa-trash"></i> Related Data</label>
<input
type="checkbox"
checked
id="node-input-delete_releated"
style="display: inline-block; width: auto; vertical-align: top; margin-left: 5px; margin-right: 3px;"
/>
<label style="width:auto"> Delete</label>
</div>
</script>
<script type="text/markdown" data-help-name="processinstance-delete-advanced">
Delete outdated instances of a process model in ProcessCube.
*Supported only on engines version 19 or higher.*
## Inputs
The node can take an input query from either a specific field on the msg object or as a json object directly in the nodes configuration.
In both cases the node supports the following fields in the query:
: processInstanceId (String): The IDs of the ProcessInstances to delete.
: processModelId (String): The ID of the ProcessModel to delete the instances from.
: finishedBefore (Datetime): The date before which the instances should be deleted.
: finshedAfter (Datetime): The date after which the instances should be deleted.
## Outputs
### References
- [The ProcessCube Developer Network](https://processcube.io) - All documentation for the ProcessCube© platform
- [Node-RED Integration in ProcessCube©](https://processcube.io/docs/node-red) - Node-RED integration in ProcessCube©
</script>