/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 6.5.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// StartBpmnInstanceByMessage : the message payload for a message start (#2040)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StartBpmnInstanceByMessage {
/// Start variables for the new instance, addressed by the process as `flow_input.<name>` and as process variables.
#[serde(rename = "flow_input", skip_serializing_if = "Option::is_none")]
pub flow_input: Option<std::collections::HashMap<String, serde_json::Value>>,
/// Optional business key linking the instance to a case, as on `POST /bpmn/run/p/{path}`.
#[serde(rename = "business_key", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub business_key: Option<Option<String>>,
}
impl StartBpmnInstanceByMessage {
/// the message payload for a message start (#2040)
pub fn new() -> StartBpmnInstanceByMessage {
StartBpmnInstanceByMessage {
flow_input: None,
business_key: None,
}
}
}