camunda_client/models/
external_task_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/// ExternalTaskDto : An External Task object with the following properties
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ExternalTaskDto {
17    /// The id of the activity that this external task belongs to.
18    #[serde(rename = "activityId", skip_serializing_if = "Option::is_none")]
19    pub activity_id: Option<String>,
20    /// The id of the activity instance that the external task belongs to.
21    #[serde(rename = "activityInstanceId", skip_serializing_if = "Option::is_none")]
22    pub activity_instance_id: Option<String>,
23    /// The full error message submitted with the latest reported failure executing this task; `null` if no failure was reported previously or if no error message was submitted
24    #[serde(rename = "errorMessage", skip_serializing_if = "Option::is_none")]
25    pub error_message: Option<String>,
26    /// The id of the execution that the external task belongs to.
27    #[serde(rename = "executionId", skip_serializing_if = "Option::is_none")]
28    pub execution_id: Option<String>,
29    /// The id of the external task.
30    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
31    pub id: Option<String>,
32    /// The date that the task's most recent lock expires or has expired.
33    #[serde(rename = "lockExpirationTime", skip_serializing_if = "Option::is_none")]
34    pub lock_expiration_time: Option<String>,
35    /// The id of the process definition the external task is defined in.
36    #[serde(rename = "processDefinitionId", skip_serializing_if = "Option::is_none")]
37    pub process_definition_id: Option<String>,
38    /// The key of the process definition the external task is defined in.
39    #[serde(rename = "processDefinitionKey", skip_serializing_if = "Option::is_none")]
40    pub process_definition_key: Option<String>,
41    /// The version tag of the process definition the external task is defined in.
42    #[serde(rename = "processDefinitionVersionTag", skip_serializing_if = "Option::is_none")]
43    pub process_definition_version_tag: Option<String>,
44    /// The id of the process instance the external task belongs to.
45    #[serde(rename = "processInstanceId", skip_serializing_if = "Option::is_none")]
46    pub process_instance_id: Option<String>,
47    /// The id of the tenant the external task belongs to.
48    #[serde(rename = "tenantId", skip_serializing_if = "Option::is_none")]
49    pub tenant_id: Option<String>,
50    /// The number of retries the task currently has left.
51    #[serde(rename = "retries", skip_serializing_if = "Option::is_none")]
52    pub retries: Option<i32>,
53    /// A flag indicating whether the external task is suspended or not.
54    #[serde(rename = "suspended", skip_serializing_if = "Option::is_none")]
55    pub suspended: Option<bool>,
56    /// The id of the worker that posesses or posessed the most recent lock.
57    #[serde(rename = "workerId", skip_serializing_if = "Option::is_none")]
58    pub worker_id: Option<String>,
59    /// The topic name of the external task.
60    #[serde(rename = "topicName", skip_serializing_if = "Option::is_none")]
61    pub topic_name: Option<String>,
62    /// The priority of the external task.
63    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
64    pub priority: Option<i64>,
65    /// The business key of the process instance the external task belongs to.
66    #[serde(rename = "businessKey", skip_serializing_if = "Option::is_none")]
67    pub business_key: Option<String>,
68}
69
70impl ExternalTaskDto {
71    /// An External Task object with the following properties
72    pub fn new() -> ExternalTaskDto {
73        ExternalTaskDto {
74            activity_id: None,
75            activity_instance_id: None,
76            error_message: None,
77            execution_id: None,
78            id: None,
79            lock_expiration_time: None,
80            process_definition_id: None,
81            process_definition_key: None,
82            process_definition_version_tag: None,
83            process_instance_id: None,
84            tenant_id: None,
85            retries: None,
86            suspended: None,
87            worker_id: None,
88            topic_name: None,
89            priority: None,
90            business_key: None,
91        }
92    }
93}
94
95