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 pathprocessdefinition-query.html
More file actions
88 lines (72 loc) · 3.22 KB
/
processdefinition-query.html
File metadata and controls
88 lines (72 loc) · 3.22 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
83
84
85
86
87
88
<script type="text/javascript">
RED.nodes.registerType('processdefinition-query', {
category: 'ProcessCube',
color: '#02AFD6',
defaults: {
name: { value: '' },
engine: { value: '', type: 'processcube-engine-config' },
query: { value: 'payload' },
query_type: { value: 'msg' },
models_only: { value: false },
},
inputs: 1,
outputs: 1,
icon: 'processdefinition_query.svg',
label: function () {
return this.name || 'processdefinition-query';
},
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="processdefinition-query">
<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-tag"></i> Engine-URL</label>
<input type="text" id="node-input-engine" placeholder="http://engine:8000" />
</div>
<div class="form-row">
<label for="node-input-query"><i class="fa fa-tag"></i> Query</label>
<input type="text" id="node-input-query" />
</div>
<div class="form-row" style="margin-bottom: 3px;">
<input type="checkbox" checked id="node-input-models_only" style="display: inline-block; width: auto; vertical-align: top; margin-left: 30px; margin-right: 5px;">
<label style="width:auto" for="node-input-models_only">Only send models as result</label>
</div>
</script>
<script type="text/markdown" data-help-name="processdefinition-query">
A node to query process definition on the ProcessCube Engine.
The `query` can be given a direkt query field from the configutation or a message property.
Only models can be queried by setting the `models_only` flag.
## Inputs
: payload (Object | JSON) : Will be used as the input for the query or can be directly set as JSON.
## Outputs
: processDefinitions / models (Array) : The processDefinitions / models that matched the query.
: totalCount (number) : The number of matches.
### Query fields
**Summary**:
**Description**: Filter result for 'ProcessDefinitions Query'
#### Parameters:
- Name: `offset` Required: `false`
- Type: number
- Description: The index of the first ProcessDefinition to include.
- Name: `limit` Required: `false`
- Type: number
- Description: The maximum number of ProcessDefinitions to include.
### References
- [The ProcessCube© Developer Network](https://processcube.io) - All documentation for the ProcessCube© platform
- [ProcessCube© LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube©
</script>