camunda_client/models/
complete_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
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CompleteExternalTaskDto {
16    /// The id of the worker that completes the task. 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    /// A JSON object containing variable key-value pairs. Each key is a variable name and each value a JSON variable value object with the following properties:
20    #[serde(rename = "variables", skip_serializing_if = "Option::is_none")]
21    pub variables: Option<::std::collections::HashMap<String, crate::models::VariableValueDto>>,
22    /// A JSON object containing local variable key-value pairs. Local variables are set only in the scope of external task. Each key is a variable name and each value a JSON variable value object with the following properties:
23    #[serde(rename = "localVariables", skip_serializing_if = "Option::is_none")]
24    pub local_variables: Option<::std::collections::HashMap<String, crate::models::VariableValueDto>>,
25}
26
27impl CompleteExternalTaskDto {
28    pub fn new() -> CompleteExternalTaskDto {
29        CompleteExternalTaskDto {
30            worker_id: None,
31            variables: None,
32            local_variables: None,
33        }
34    }
35}
36
37