orvanta-api 6.5.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * 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};

/// StartBpmnInstance : initial process variables, seeded into the root scope
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StartBpmnInstance {
    /// Start variables for this instance, addressed by the process as `flow_input.<name>`. Shape them after the flow's `schema`.
    #[serde(rename = "flow_input", skip_serializing_if = "Option::is_none")]
    pub flow_input: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// Which `<process>` of the document to start (#1232) -- Flowable's `startProcessInstanceByKey`. Omit for the flow's MAIN process: the first `isExecutable` one in document order, which is what the Run button sends and what every single-process document has exactly one of. Naming a process the deployed version does not register -- absent, or `isExecutable=\"false\"`, for which Flowable creates no definition either -- is a 400 listing the keys it does register, never a silent fall-back to the main process.
    #[serde(rename = "process_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub process_id: Option<Option<String>>,
}

impl StartBpmnInstance {
    /// initial process variables, seeded into the root scope
    pub fn new() -> StartBpmnInstance {
        StartBpmnInstance {
            flow_input: None,
            process_id: None,
        }
    }
}