camunda_client/models/
task_query_dto.rs

1/*
2 * Camunda BPM REST API
3 *
4 * OpenApi Spec for Camunda BPM REST API.
5 *
6 * The version of the OpenAPI document: 7.13.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// TaskQueryDto : A Task query which defines a group of Tasks.
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TaskQueryDto {
17    /// Restrict to tasks that belong to process instances with the given id.
18    #[serde(rename = "processInstanceId", skip_serializing_if = "Option::is_none")]
19    pub process_instance_id: Option<String>,
20    /// Restrict to tasks that belong to process instances with the given ids.
21    #[serde(rename = "processInstanceIdIn", skip_serializing_if = "Option::is_none")]
22    pub process_instance_id_in: Option<Vec<String>>,
23    /// Restrict to tasks that belong to process instances with the given business key.
24    #[serde(rename = "processInstanceBusinessKey", skip_serializing_if = "Option::is_none")]
25    pub process_instance_business_key: Option<String>,
26    /// Restrict to tasks that belong to process instances with the given business key which  is described by an expression. See the  [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions.
27    #[serde(rename = "processInstanceBusinessKeyExpression", skip_serializing_if = "Option::is_none")]
28    pub process_instance_business_key_expression: Option<String>,
29    /// Restrict to tasks that belong to process instances with one of the give business keys.  The keys need to be in a comma-separated list.
30    #[serde(rename = "processInstanceBusinessKeyIn", skip_serializing_if = "Option::is_none")]
31    pub process_instance_business_key_in: Option<Vec<String>>,
32    /// Restrict to tasks that have a process instance business key that has the parameter  value as a substring.
33    #[serde(rename = "processInstanceBusinessKeyLike", skip_serializing_if = "Option::is_none")]
34    pub process_instance_business_key_like: Option<String>,
35    /// Restrict to tasks that have a process instance business key that has the parameter  value as a substring and is described by an expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions)  for more information on available functions.
36    #[serde(rename = "processInstanceBusinessKeyLikeExpression", skip_serializing_if = "Option::is_none")]
37    pub process_instance_business_key_like_expression: Option<String>,
38    /// Restrict to tasks that belong to a process definition with the given id.
39    #[serde(rename = "processDefinitionId", skip_serializing_if = "Option::is_none")]
40    pub process_definition_id: Option<String>,
41    /// Restrict to tasks that belong to a process definition with the given key.
42    #[serde(rename = "processDefinitionKey", skip_serializing_if = "Option::is_none")]
43    pub process_definition_key: Option<String>,
44    /// Restrict to tasks that belong to a process definition with one of the given keys. The  keys need to be in a comma-separated list.
45    #[serde(rename = "processDefinitionKeyIn", skip_serializing_if = "Option::is_none")]
46    pub process_definition_key_in: Option<Vec<String>>,
47    /// Restrict to tasks that belong to a process definition with the given name.
48    #[serde(rename = "processDefinitionName", skip_serializing_if = "Option::is_none")]
49    pub process_definition_name: Option<String>,
50    /// Restrict to tasks that have a process definition name that has the parameter value as  a substring.
51    #[serde(rename = "processDefinitionNameLike", skip_serializing_if = "Option::is_none")]
52    pub process_definition_name_like: Option<String>,
53    /// Restrict to tasks that belong to an execution with the given id.
54    #[serde(rename = "executionId", skip_serializing_if = "Option::is_none")]
55    pub execution_id: Option<String>,
56    /// Restrict to tasks that belong to case instances with the given id.
57    #[serde(rename = "caseInstanceId", skip_serializing_if = "Option::is_none")]
58    pub case_instance_id: Option<String>,
59    /// Restrict to tasks that belong to case instances with the given business key.
60    #[serde(rename = "caseInstanceBusinessKey", skip_serializing_if = "Option::is_none")]
61    pub case_instance_business_key: Option<String>,
62    /// Restrict to tasks that have a case instance business key that has the parameter value  as a substring.
63    #[serde(rename = "caseInstanceBusinessKeyLike", skip_serializing_if = "Option::is_none")]
64    pub case_instance_business_key_like: Option<String>,
65    /// Restrict to tasks that belong to a case definition with the given id.
66    #[serde(rename = "caseDefinitionId", skip_serializing_if = "Option::is_none")]
67    pub case_definition_id: Option<String>,
68    /// Restrict to tasks that belong to a case definition with the given key.
69    #[serde(rename = "caseDefinitionKey", skip_serializing_if = "Option::is_none")]
70    pub case_definition_key: Option<String>,
71    /// Restrict to tasks that belong to a case definition with the given name.
72    #[serde(rename = "caseDefinitionName", skip_serializing_if = "Option::is_none")]
73    pub case_definition_name: Option<String>,
74    /// Restrict to tasks that have a case definition name that has the parameter value as a  substring.
75    #[serde(rename = "caseDefinitionNameLike", skip_serializing_if = "Option::is_none")]
76    pub case_definition_name_like: Option<String>,
77    /// Restrict to tasks that belong to a case execution with the given id.
78    #[serde(rename = "caseExecutionId", skip_serializing_if = "Option::is_none")]
79    pub case_execution_id: Option<String>,
80    /// Only include tasks which belong to one of the passed and comma-separated activity  instance ids.
81    #[serde(rename = "activityInstanceIdIn", skip_serializing_if = "Option::is_none")]
82    pub activity_instance_id_in: Option<Vec<String>>,
83    /// Only include tasks which belong to one of the passed and comma-separated  tenant ids.
84    #[serde(rename = "tenantIdIn", skip_serializing_if = "Option::is_none")]
85    pub tenant_id_in: Option<Vec<String>>,
86    /// Only include tasks which belong to no tenant. Value may only be `true`,  as `false` is the default behavior.
87    #[serde(rename = "withoutTenantId", skip_serializing_if = "Option::is_none")]
88    pub without_tenant_id: Option<bool>,
89    /// Restrict to tasks that the given user is assigned to.
90    #[serde(rename = "assignee", skip_serializing_if = "Option::is_none")]
91    pub assignee: Option<String>,
92    /// Restrict to tasks that the user described by the given expression is assigned to. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions)  for more information on available functions.
93    #[serde(rename = "assigneeExpression", skip_serializing_if = "Option::is_none")]
94    pub assignee_expression: Option<String>,
95    /// Restrict to tasks that have an assignee that has the parameter  value as a substring.
96    #[serde(rename = "assigneeLike", skip_serializing_if = "Option::is_none")]
97    pub assignee_like: Option<String>,
98    /// Restrict to tasks that have an assignee that has the parameter value described by the  given expression as a substring. See the  [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions)  for more information on available functions.
99    #[serde(rename = "assigneeLikeExpression", skip_serializing_if = "Option::is_none")]
100    pub assignee_like_expression: Option<String>,
101    /// Only include tasks which are assigned to one of the passed and comma-separated user ids.
102    #[serde(rename = "assigneeIn", skip_serializing_if = "Option::is_none")]
103    pub assignee_in: Option<Vec<String>>,
104    /// Restrict to tasks that the given user owns.
105    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
106    pub owner: Option<String>,
107    /// Restrict to tasks that the user described by the given expression owns. See the  [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions)  for more information on available functions.
108    #[serde(rename = "ownerExpression", skip_serializing_if = "Option::is_none")]
109    pub owner_expression: Option<String>,
110    /// Only include tasks that are offered to the given group.
111    #[serde(rename = "candidateGroup", skip_serializing_if = "Option::is_none")]
112    pub candidate_group: Option<String>,
113    /// Only include tasks that are offered to the group described by the given expression.  See the  [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions)  for more information on available functions.
114    #[serde(rename = "candidateGroupExpression", skip_serializing_if = "Option::is_none")]
115    pub candidate_group_expression: Option<String>,
116    /// Only include tasks that are offered to the given user or to one of his groups.
117    #[serde(rename = "candidateUser", skip_serializing_if = "Option::is_none")]
118    pub candidate_user: Option<String>,
119    /// Only include tasks that are offered to the user described by the given expression.  See the  [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions)  for more information on available functions.
120    #[serde(rename = "candidateUserExpression", skip_serializing_if = "Option::is_none")]
121    pub candidate_user_expression: Option<String>,
122    /// Also include tasks that are assigned to users in candidate queries. Default is to only  include tasks that are not assigned to any user if you query by candidate user or group(s).
123    #[serde(rename = "includeAssignedTasks", skip_serializing_if = "Option::is_none")]
124    pub include_assigned_tasks: Option<bool>,
125    /// Only include tasks that the given user is involved in. A user is involved in a task if  an identity link exists between task and user (e.g., the user is the assignee).
126    #[serde(rename = "involvedUser", skip_serializing_if = "Option::is_none")]
127    pub involved_user: Option<String>,
128    /// Only include tasks that the user described by the given expression is involved in. A user is involved in a task if an identity link exists between task and user (e.g., the user is the assignee). See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions.
129    #[serde(rename = "involvedUserExpression", skip_serializing_if = "Option::is_none")]
130    pub involved_user_expression: Option<String>,
131    /// If set to `true`, restricts the query to all tasks that are assigned.
132    #[serde(rename = "assigned", skip_serializing_if = "Option::is_none")]
133    pub assigned: Option<bool>,
134    /// If set to `true`, restricts the query to all tasks that are unassigned.
135    #[serde(rename = "unassigned", skip_serializing_if = "Option::is_none")]
136    pub unassigned: Option<bool>,
137    /// Restrict to tasks that have the given key.
138    #[serde(rename = "taskDefinitionKey", skip_serializing_if = "Option::is_none")]
139    pub task_definition_key: Option<String>,
140    /// Restrict to tasks that have one of the given keys. The keys need to be in a comma-separated list.
141    #[serde(rename = "taskDefinitionKeyIn", skip_serializing_if = "Option::is_none")]
142    pub task_definition_key_in: Option<Vec<String>>,
143    /// Restrict to tasks that have a key that has the parameter value as a substring.
144    #[serde(rename = "taskDefinitionKeyLike", skip_serializing_if = "Option::is_none")]
145    pub task_definition_key_like: Option<String>,
146    /// Restrict to tasks that have the given name.
147    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
148    pub name: Option<String>,
149    /// Restrict to tasks that do not have the given name.
150    #[serde(rename = "nameNotEqual", skip_serializing_if = "Option::is_none")]
151    pub name_not_equal: Option<String>,
152    /// Restrict to tasks that have a name with the given parameter value as substring.
153    #[serde(rename = "nameLike", skip_serializing_if = "Option::is_none")]
154    pub name_like: Option<String>,
155    /// Restrict to tasks that do not have a name with the given parameter value as substring.
156    #[serde(rename = "nameNotLike", skip_serializing_if = "Option::is_none")]
157    pub name_not_like: Option<String>,
158    /// Restrict to tasks that have the given description.
159    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
160    pub description: Option<String>,
161    /// Restrict to tasks that have a description that has the parameter value as a substring.
162    #[serde(rename = "descriptionLike", skip_serializing_if = "Option::is_none")]
163    pub description_like: Option<String>,
164    /// Restrict to tasks that have the given priority.
165    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
166    pub priority: Option<i32>,
167    /// Restrict to tasks that have a lower or equal priority.
168    #[serde(rename = "maxPriority", skip_serializing_if = "Option::is_none")]
169    pub max_priority: Option<i32>,
170    /// Restrict to tasks that have a higher or equal priority.
171    #[serde(rename = "minPriority", skip_serializing_if = "Option::is_none")]
172    pub min_priority: Option<i32>,
173    /// Restrict to tasks that are due on the given date. By [default](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.546+0200`.
174    #[serde(rename = "dueDate", skip_serializing_if = "Option::is_none")]
175    pub due_date: Option<String>,
176    /// Restrict to tasks that are due on the date described by the given expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions. The expression must evaluate to a `java.util.Date` or `org.joda.time.DateTime` object.
177    #[serde(rename = "dueDateExpression", skip_serializing_if = "Option::is_none")]
178    pub due_date_expression: Option<String>,
179    /// Restrict to tasks that are due after the given date. By [default](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.435+0200`.
180    #[serde(rename = "dueAfter", skip_serializing_if = "Option::is_none")]
181    pub due_after: Option<String>,
182    /// Restrict to tasks that are due after the date described by the given expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions. The expression must evaluate to a `java.util.Date` or `org.joda.time.DateTime` object.
183    #[serde(rename = "dueAfterExpression", skip_serializing_if = "Option::is_none")]
184    pub due_after_expression: Option<String>,
185    /// Restrict to tasks that are due before the given date. By [default](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.243+0200`.
186    #[serde(rename = "dueBefore", skip_serializing_if = "Option::is_none")]
187    pub due_before: Option<String>,
188    /// Restrict to tasks that are due before the date described by the given expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions. The expression must evaluate to a `java.util.Date` or `org.joda.time.DateTime` object.
189    #[serde(rename = "dueBeforeExpression", skip_serializing_if = "Option::is_none")]
190    pub due_before_expression: Option<String>,
191    /// Restrict to tasks that have a followUp date on the given date. By [default](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.342+0200`.
192    #[serde(rename = "followUpDate", skip_serializing_if = "Option::is_none")]
193    pub follow_up_date: Option<String>,
194    /// Restrict to tasks that have a followUp date on the date described by the given expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions. The expression must evaluate to a `java.util.Date` or `org.joda.time.DateTime` object.
195    #[serde(rename = "followUpDateExpression", skip_serializing_if = "Option::is_none")]
196    pub follow_up_date_expression: Option<String>,
197    /// Restrict to tasks that have a followUp date after the given date. By [default](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.542+0200`.
198    #[serde(rename = "followUpAfter", skip_serializing_if = "Option::is_none")]
199    pub follow_up_after: Option<String>,
200    /// Restrict to tasks that have a followUp date after the date described by the given expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions. The expression must evaluate to a `java.util.Date` or `org.joda.time.DateTime` object.
201    #[serde(rename = "followUpAfterExpression", skip_serializing_if = "Option::is_none")]
202    pub follow_up_after_expression: Option<String>,
203    /// Restrict to tasks that have a followUp date before the given date. By [default](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.234+0200`.
204    #[serde(rename = "followUpBefore", skip_serializing_if = "Option::is_none")]
205    pub follow_up_before: Option<String>,
206    /// Restrict to tasks that have a followUp date before the date described by the given expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions. The expression must evaluate to a `java.util.Date` or `org.joda.time.DateTime` object.
207    #[serde(rename = "followUpBeforeExpression", skip_serializing_if = "Option::is_none")]
208    pub follow_up_before_expression: Option<String>,
209    /// Restrict to tasks that have no followUp date or a followUp date before the given date. By [default](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.432+0200`. The typical use case is to query all `active` tasks for a user for a given date.
210    #[serde(rename = "followUpBeforeOrNotExistent", skip_serializing_if = "Option::is_none")]
211    pub follow_up_before_or_not_existent: Option<String>,
212    /// Restrict to tasks that have no followUp date or a followUp date before the date described by the given expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions. The expression must evaluate to a `java.util.Date` or `org.joda.time.DateTime` object.
213    #[serde(rename = "followUpBeforeOrNotExistentExpression", skip_serializing_if = "Option::is_none")]
214    pub follow_up_before_or_not_existent_expression: Option<String>,
215    /// Restrict to tasks that were created on the given date. By [default](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.324+0200`.
216    #[serde(rename = "createdOn", skip_serializing_if = "Option::is_none")]
217    pub created_on: Option<String>,
218    /// Restrict to tasks that were created on the date described by the given expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions. The expression must evaluate to a `java.util.Date` or `org.joda.time.DateTime` object.
219    #[serde(rename = "createdOnExpression", skip_serializing_if = "Option::is_none")]
220    pub created_on_expression: Option<String>,
221    /// Restrict to tasks that were created after the given date. By [default](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.342+0200`.
222    #[serde(rename = "createdAfter", skip_serializing_if = "Option::is_none")]
223    pub created_after: Option<String>,
224    /// Restrict to tasks that were created after the date described by the given expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions. The expression must evaluate to a `java.util.Date` or `org.joda.time.DateTime` object.
225    #[serde(rename = "createdAfterExpression", skip_serializing_if = "Option::is_none")]
226    pub created_after_expression: Option<String>,
227    /// Restrict to tasks that were created before the given date. By [default](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.332+0200`.
228    #[serde(rename = "createdBefore", skip_serializing_if = "Option::is_none")]
229    pub created_before: Option<String>,
230    /// Restrict to tasks that were created before the date described by the given expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions. The expression must evaluate to a `java.util.Date` or `org.joda.time.DateTime` object.
231    #[serde(rename = "createdBeforeExpression", skip_serializing_if = "Option::is_none")]
232    pub created_before_expression: Option<String>,
233    /// Restrict to tasks that are in the given delegation state. Valid values are `PENDING` and `RESOLVED`.
234    #[serde(rename = "delegationState", skip_serializing_if = "Option::is_none")]
235    pub delegation_state: Option<DelegationState>,
236    /// Restrict to tasks that are offered to any of the given candidate groups. Takes a comma-separated list of group names, so for example `developers,support,sales`.
237    #[serde(rename = "candidateGroups", skip_serializing_if = "Option::is_none")]
238    pub candidate_groups: Option<Vec<String>>,
239    /// Restrict to tasks that are offered to any of the candidate groups described by the given expression. See the [user guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/expression-language/#internal-context-functions) for more information on available functions. The expression must evaluate to `java.util.List` of Strings.
240    #[serde(rename = "candidateGroupsExpression", skip_serializing_if = "Option::is_none")]
241    pub candidate_groups_expression: Option<String>,
242    /// Only include tasks which have a candidate group. Value may only be `true`, as `false` is the default behavior.
243    #[serde(rename = "withCandidateGroups", skip_serializing_if = "Option::is_none")]
244    pub with_candidate_groups: Option<bool>,
245    /// Only include tasks which have no candidate group. Value may only be `true`, as `false` is the default behavior.
246    #[serde(rename = "withoutCandidateGroups", skip_serializing_if = "Option::is_none")]
247    pub without_candidate_groups: Option<bool>,
248    /// Only include tasks which have a candidate user. Value may only be `true`, as `false` is the default behavior.
249    #[serde(rename = "withCandidateUsers", skip_serializing_if = "Option::is_none")]
250    pub with_candidate_users: Option<bool>,
251    /// Only include tasks which have no candidate users. Value may only be `true`, as `false` is the default behavior.
252    #[serde(rename = "withoutCandidateUsers", skip_serializing_if = "Option::is_none")]
253    pub without_candidate_users: Option<bool>,
254    /// Only include active tasks. Value may only be `true`, as `false` is the default behavior.
255    #[serde(rename = "active", skip_serializing_if = "Option::is_none")]
256    pub active: Option<bool>,
257    /// Only include suspended tasks. Value may only be `true`, as `false` is the default behavior.
258    #[serde(rename = "suspended", skip_serializing_if = "Option::is_none")]
259    pub suspended: Option<bool>,
260    /// A JSON array to only include tasks that have variables with certain values. The array consists of JSON objects with three properties `name`, `operator` and `value`. `name` is the variable name, `operator` is the comparison operator to be used and `value` the variable value. `value` may be of type `String`, `Number` or `Boolean`.  Valid `operator` values are: `eq` - equal to; `neq` - not equal to; `gt` - greater than; `gteq` - greater than or equal to; `lt` - lower than; `lteq` - lower than or equal to; `like`. `key` and `value` may not contain underscore or comma characters.
261    #[serde(rename = "taskVariables", skip_serializing_if = "Option::is_none")]
262    pub task_variables: Option<Vec<crate::models::VariableQueryParameterDto>>,
263    /// A JSON array to only include tasks that belong to a process instance with variables with certain values. The array consists of JSON objects with three properties `name`, `operator` and `value`. `name` is the variable name, `operator` is the comparison operator to be used and `value` the variable value. `value` may be of type `String`, `Number` or `Boolean`.  Valid `operator` values are: `eq` - equal to; `neq` - not equal to; `gt` - greater than; `gteq` - greater than or equal to; `lt` - lower than; `lteq` - lower than or equal to; `like`. `key` and `value` may not contain underscore or comma characters.
264    #[serde(rename = "processVariables", skip_serializing_if = "Option::is_none")]
265    pub process_variables: Option<Vec<crate::models::VariableQueryParameterDto>>,
266    /// A JSON array to only include tasks that belong to a case instance with variables with certain values. The array consists of JSON objects with three properties `name`, `operator` and `value`. `name` is the variable name, `operator` is the comparison operator to be used and `value` the variable value. `value` may be of type `String`, `Number` or `Boolean`.  Valid `operator` values are: `eq` - equal to; `neq` - not equal to; `gt` - greater than; `gteq` - greater than or equal to; `lt` - lower than; `lteq` - lower than or equal to; `like`. `key` and `value` may not contain underscore or comma characters.
267    #[serde(rename = "caseInstanceVariables", skip_serializing_if = "Option::is_none")]
268    pub case_instance_variables: Option<Vec<crate::models::VariableQueryParameterDto>>,
269    /// Match all variable names in this query case-insensitively. If set `variableName` and `variablename` are treated as equal.
270    #[serde(rename = "variableNamesIgnoreCase", skip_serializing_if = "Option::is_none")]
271    pub variable_names_ignore_case: Option<bool>,
272    /// Match all variable values in this query case-insensitively. If set `variableValue` and `variablevalue` are treated as equal.
273    #[serde(rename = "variableValuesIgnoreCase", skip_serializing_if = "Option::is_none")]
274    pub variable_values_ignore_case: Option<bool>,
275    /// Restrict query to all tasks that are sub tasks of the given task. Takes a task id.
276    #[serde(rename = "parentTaskId", skip_serializing_if = "Option::is_none")]
277    pub parent_task_id: Option<String>,
278    /// A JSON array of nested task queries with OR semantics. A task matches a nested query if it fulfills *at least one* of the query's predicates. With multiple nested queries, a task must fulfill at least one predicate of *each* query ([Conjunctive Normal Form](https://en.wikipedia.org/wiki/Conjunctive_normal_form)).  All task query properties can be used except for: `sorting`, `withCandidateGroups`, `withoutCandidateGroups`, `withCandidateUsers`, `withoutCandidateUsers`  See the [User guide](https://docs.camunda.org/manual/7.13/user-guide/process-engine/process-engine-api/#or-queries) for more information about OR queries.
279    #[serde(rename = "orQueries", skip_serializing_if = "Option::is_none")]
280    pub or_queries: Option<Vec<crate::models::TaskQueryDto>>,
281    /// Apply sorting of the result
282    #[serde(rename = "sorting", skip_serializing_if = "Option::is_none")]
283    pub sorting: Option<Vec<crate::models::TaskQueryDtoSorting>>,
284}
285
286impl TaskQueryDto {
287    /// A Task query which defines a group of Tasks.
288    pub fn new() -> TaskQueryDto {
289        TaskQueryDto {
290            process_instance_id: None,
291            process_instance_id_in: None,
292            process_instance_business_key: None,
293            process_instance_business_key_expression: None,
294            process_instance_business_key_in: None,
295            process_instance_business_key_like: None,
296            process_instance_business_key_like_expression: None,
297            process_definition_id: None,
298            process_definition_key: None,
299            process_definition_key_in: None,
300            process_definition_name: None,
301            process_definition_name_like: None,
302            execution_id: None,
303            case_instance_id: None,
304            case_instance_business_key: None,
305            case_instance_business_key_like: None,
306            case_definition_id: None,
307            case_definition_key: None,
308            case_definition_name: None,
309            case_definition_name_like: None,
310            case_execution_id: None,
311            activity_instance_id_in: None,
312            tenant_id_in: None,
313            without_tenant_id: None,
314            assignee: None,
315            assignee_expression: None,
316            assignee_like: None,
317            assignee_like_expression: None,
318            assignee_in: None,
319            owner: None,
320            owner_expression: None,
321            candidate_group: None,
322            candidate_group_expression: None,
323            candidate_user: None,
324            candidate_user_expression: None,
325            include_assigned_tasks: None,
326            involved_user: None,
327            involved_user_expression: None,
328            assigned: None,
329            unassigned: None,
330            task_definition_key: None,
331            task_definition_key_in: None,
332            task_definition_key_like: None,
333            name: None,
334            name_not_equal: None,
335            name_like: None,
336            name_not_like: None,
337            description: None,
338            description_like: None,
339            priority: None,
340            max_priority: None,
341            min_priority: None,
342            due_date: None,
343            due_date_expression: None,
344            due_after: None,
345            due_after_expression: None,
346            due_before: None,
347            due_before_expression: None,
348            follow_up_date: None,
349            follow_up_date_expression: None,
350            follow_up_after: None,
351            follow_up_after_expression: None,
352            follow_up_before: None,
353            follow_up_before_expression: None,
354            follow_up_before_or_not_existent: None,
355            follow_up_before_or_not_existent_expression: None,
356            created_on: None,
357            created_on_expression: None,
358            created_after: None,
359            created_after_expression: None,
360            created_before: None,
361            created_before_expression: None,
362            delegation_state: None,
363            candidate_groups: None,
364            candidate_groups_expression: None,
365            with_candidate_groups: None,
366            without_candidate_groups: None,
367            with_candidate_users: None,
368            without_candidate_users: None,
369            active: None,
370            suspended: None,
371            task_variables: None,
372            process_variables: None,
373            case_instance_variables: None,
374            variable_names_ignore_case: None,
375            variable_values_ignore_case: None,
376            parent_task_id: None,
377            or_queries: None,
378            sorting: None,
379        }
380    }
381}
382
383/// Restrict to tasks that are in the given delegation state. Valid values are `PENDING` and `RESOLVED`.
384#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
385pub enum DelegationState {
386    #[serde(rename = "PENDING")]
387    PENDING,
388    #[serde(rename = "RESOLVED")]
389    RESOLVED,
390}
391