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