camunda_client/models/
external_task_bpmn_error.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 ExternalTaskBpmnError {
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 error code that indicates the predefined error. It is used to identify the BPMN error handler.
20    #[serde(rename = "errorCode", skip_serializing_if = "Option::is_none")]
21    pub error_code: Option<String>,
22    /// An error message that describes the error.
23    #[serde(rename = "errorMessage", skip_serializing_if = "Option::is_none")]
24    pub error_message: Option<String>,
25    /// A JSON object containing variable key-value pairs.
26    #[serde(rename = "variables", skip_serializing_if = "Option::is_none")]
27    pub variables: Option<::std::collections::HashMap<String, crate::models::VariableValueDto>>,
28}
29
30impl ExternalTaskBpmnError {
31    pub fn new() -> ExternalTaskBpmnError {
32        ExternalTaskBpmnError {
33            worker_id: None,
34            error_code: None,
35            error_message: None,
36            variables: None,
37        }
38    }
39}
40
41