Skip to main content

orvanta_api/models/
bpmn_join_state.rs

1/*
2 * Orvanta API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.6.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BpmnJoinState : join accounting for a parallel (AND) or structured inclusive (OR) join
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BpmnJoinState {
17    #[serde(rename = "join_id")]
18    pub join_id: String,
19    #[serde(rename = "scope_id")]
20    pub scope_id: uuid::Uuid,
21    #[serde(rename = "activation")]
22    pub activation: i32,
23    #[serde(rename = "expected")]
24    pub expected: Vec<String>,
25    #[serde(rename = "arrived")]
26    pub arrived: Vec<String>,
27}
28
29impl BpmnJoinState {
30    /// join accounting for a parallel (AND) or structured inclusive (OR) join
31    pub fn new(join_id: String, scope_id: uuid::Uuid, activation: i32, expected: Vec<String>, arrived: Vec<String>) -> BpmnJoinState {
32        BpmnJoinState {
33            join_id,
34            scope_id,
35            activation,
36            expected,
37            arrived,
38        }
39    }
40}
41