camunda_client/models/
process_instance_with_variables_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 ProcessInstanceWithVariablesDto {
16    /// The id of the process instance.
17    #[serde(rename = "variables", skip_serializing_if = "Option::is_none")]
18    pub variables: Option<::std::collections::HashMap<String, crate::models::VariableValueDto>>,
19    /// The id of the process instance.
20    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21    pub id: Option<String>,
22    /// The id of the process definition that this process instance belongs to.
23    #[serde(rename = "definitionId", skip_serializing_if = "Option::is_none")]
24    pub definition_id: Option<String>,
25    /// The business key of the process instance.
26    #[serde(rename = "businessKey", skip_serializing_if = "Option::is_none")]
27    pub business_key: Option<String>,
28    /// The id of the case instance associated with the process instance.
29    #[serde(rename = "caseInstanceId", skip_serializing_if = "Option::is_none")]
30    pub case_instance_id: Option<String>,
31    /// A flag indicating whether the process instance has ended or not. Deprecated: will always be false!
32    #[serde(rename = "ended", skip_serializing_if = "Option::is_none")]
33    pub ended: Option<bool>,
34    /// A flag indicating whether the process instance is suspended or not.
35    #[serde(rename = "suspended", skip_serializing_if = "Option::is_none")]
36    pub suspended: Option<bool>,
37    /// The tenant id of the process instance.
38    #[serde(rename = "tenantId", skip_serializing_if = "Option::is_none")]
39    pub tenant_id: Option<String>,
40    /// The links associated to this resource, with `method`, `href` and `rel`.
41    #[serde(rename = "links", skip_serializing_if = "Option::is_none")]
42    pub links: Option<Vec<crate::models::AtomLink>>,
43}
44
45impl ProcessInstanceWithVariablesDto {
46    pub fn new() -> ProcessInstanceWithVariablesDto {
47        ProcessInstanceWithVariablesDto {
48            variables: None,
49            id: None,
50            definition_id: None,
51            business_key: None,
52            case_instance_id: None,
53            ended: None,
54            suspended: None,
55            tenant_id: None,
56            links: None,
57        }
58    }
59}
60
61