-
Notifications
You must be signed in to change notification settings - Fork 0
/
processdefinition-query.html
204 lines (187 loc) · 8.4 KB
/
processdefinition-query.html
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<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="display:flex; margin-bottom: 3px;">
<label for="node-input-models_only" style="vertical-align:top"
><i class="fa fa-list-alt"></i> Models Only</label
>
<div>
<input
type="checkbox"
checked
id="node-input-models_only"
style="display: inline-block; width: auto; margin: 0px 0px 0px 4px;"
/>
<label style="width:auto" for="node-input-models_only">Only send models as result.</label>
</div>
</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 'ProcessInstance Query'
#### Parameters:
- Name: `offset` Required: `false`
- Type: number
- Description: The index of the first ProcessInstance to include in the result set.
- Name: `limit` Required: `false`
- Type: number
- Description: The maximum number of ProcessInstances to return.
- Name: `correlationId` Required: `false`
- Type: Array<string> | string | SearchQuery
- string: myCorrelationId
- Array<string>: myCorrelationId1,myCorrelationId2
- object:
- Description: Filter by the CorrelationId of the ProcessInstances.
- Name: `processInstanceId` Required: ``
- Type: Array<string> | string | SearchQuery
- string: myProcessInstance_12345678
- Array<string>: myProcessInstance_12345678,myProcessInstance_87654321
- object:
- Description: Filter by the ID of the ProcessInstances.
- Name: `processDefinitionId` Required: ``
- Type: Array<string> | string | SearchQuery
- string: myProcess_12345678
- Array<string>: myProcess_12345678,myProcess_87654321
- object:
- Description: Filter by the ID of the ProcessDefinition that the ProcessInstances belong to.
- Name: `processModelId` Required: ``
- Type: Array<string> | string | SearchQuery
- string: myProcessModel_12345678
- Array<string>: myProcessModel_12345678,myProcessModel_87654321
- object:
- Description: Filter by the ID of the ProcessModel that the ProcessInstances belong to.
- Name: `processModelName` Required: ``
- Type: Array<string> | string | SearchQuery
- string: My Process Model
- Array<string>: My Process Model,My Other Process Model
- object:
- Description: Filter by the name of the ProcessModel that the ProcessInstances belong to.
- Name: `processModelHash` Required: ``
- Type: Array<string> | string | SearchQuery
- string: 12345678
- Array<string>: 12345678,87654321
- object:
- Description: Filter by the hash of the ProcessModel that the ProcessInstances belong to.
- Name: `ownerId` Required: ``
- Type: Array<string> | string | SearchQuery
- string: 12345678
- Array<string>: 12345678,87654321
- object:
- Description: Filter by the ID of the User that owns the ProcessInstances.
- Name: `state` Required: ``
- Type: Array<string> | string | SearchQuery
- string: running
- Array<string>: running,finished
- object:
- Description: Filter by the state of the ProcessInstances.
- Name: `parentProcessInstanceId` Required: ``
- Type: Array<string> | string | SearchQuery
- string: myParentProcessInstance_12345678
- Array<string>: myParentProcessInstance_12345678,myParentProcessInstance_87654321
- object:
- Description: Filter by the ID of the parent ProcessInstance.
- Name: `embeddedProcessModelId` Required: ``
- Type: Array<string> | string | SearchQuery
- string: myModel1
- Array<string>: myModel1,myModel2
- object:
- Description: Filter by the ID of the embedded process model.
- Name: `terminatedByUserId` Required: ``
- Type: Array<string> | string | SearchQuery
- string: 12345678
- Array<string>: 12345678,87654321
- object:
- Description: Filter by the ID of the User that terminated the ProcessInstances.
- Name: `createdBefore` Required: ``
- Type: string
- Description: The maximum created date of the ProcessInstances to include in the results.
- Name: `createdAt` Required: ``
- Type: Array<string> | string
- string: 2021-01-01T00:00:00.000Z
- array: 2021-01-01T00:00:00.000Z,2021-01-02T00:00:00.000Z
- Description: The minimum created date of the ProcessInstances to include in the results.
- Name: `createdAfter` Required: ``
- Type: string
- Description: The minimum created date of the ProcessInstances to include in the results.
- Name: `updatedBefore` Required: ``
- Type: string
- Description: The maximum updated date of the ProcessInstances to include in the results.
- Name: `updatedAt` Required: ``
- Type: Array<string> | string
- string: 2021-01-01T00:00:00.000Z
- array: 2021-01-01T00:00:00.000Z,2021-01-02T00:00:00.000Z
- Description: The exact updated date of the ProcessInstances to include in the results.
- Name: `updatedAfter` Required: ``
- Type: string
- Description: The minimum updated date of the ProcessInstances to include in the results.
- Name: `finishedBefore` Required: ``
- Type: string
- Description: The maximum finished date of the ProcessInstances to include in the results.
- Name: `finishedAt` Required: ``
- Type: Array<string> | string
- string: 2021-01-01T00:00:00.000Z
- array: 2021-01-01T00:00:00.000Z,2021-01-02T00:00:00.000Z
- Description: The exact finished date of the ProcessInstances to include in the results.
- Name: `finishedAfter` Required: ``
- Type: string
- Description: The minimum finished date of the ProcessInstances to include in the results.
- Name: `triggeredByFlowNodeInstance` Required: ``
- Type: Array<string> | string | SearchQuery
- string: myFlowNodeInstance_12345678
- array: myFlowNodeInstance_12345678,myFlowNodeInstance_87654321
- object:
- Description: Filter by the ID of the FlowNodeInstance that triggered the ProcessInstance.
### 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>