camunda_client/models/external_task_failure_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
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ExternalTaskFailureDto {
16 /// The id of the worker that reports the failure. Must match the id of the worker who has most recently locked the task.
17 #[serde(rename = "workerId", skip_serializing_if = "Option::is_none")]
18 pub worker_id: Option<String>,
19 /// An message indicating the reason of the failure.
20 #[serde(rename = "errorMessage", skip_serializing_if = "Option::is_none")]
21 pub error_message: Option<String>,
22 /// A detailed error description.
23 #[serde(rename = "errorDetails", skip_serializing_if = "Option::is_none")]
24 pub error_details: Option<String>,
25 /// A number of how often the task should be retried. Must be >= 0. If this is 0, an incident is created and the task cannot be fetched anymore unless the retries are increased again. The incident's message is set to the `errorMessage` parameter.
26 #[serde(rename = "retries", skip_serializing_if = "Option::is_none")]
27 pub retries: Option<i32>,
28 /// A timeout in milliseconds before the external task becomes available again for fetching. Must be >= 0.
29 #[serde(rename = "retryTimeout", skip_serializing_if = "Option::is_none")]
30 pub retry_timeout: Option<i64>,
31}
32
33impl ExternalTaskFailureDto {
34 pub fn new() -> ExternalTaskFailureDto {
35 ExternalTaskFailureDto {
36 worker_id: None,
37 error_message: None,
38 error_details: None,
39 retries: None,
40 retry_timeout: None,
41 }
42 }
43}
44
45