Skip to main content

orvanta_api/models/
start_bpmn_instance_by_message.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: 6.5.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// StartBpmnInstanceByMessage : the message payload for a message start (#2040)
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StartBpmnInstanceByMessage {
17    /// Start variables for the new instance, addressed by the process as `flow_input.<name>` and as process variables.
18    #[serde(rename = "flow_input", skip_serializing_if = "Option::is_none")]
19    pub flow_input: Option<std::collections::HashMap<String, serde_json::Value>>,
20    /// Optional business key linking the instance to a case, as on `POST /bpmn/run/p/{path}`.
21    #[serde(rename = "business_key", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
22    pub business_key: Option<Option<String>>,
23}
24
25impl StartBpmnInstanceByMessage {
26    /// the message payload for a message start (#2040)
27    pub fn new() -> StartBpmnInstanceByMessage {
28        StartBpmnInstanceByMessage {
29            flow_input: None,
30            business_key: None,
31        }
32    }
33}
34