orvanta_api/models/start_bpmn_instance.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/// StartBpmnInstance : initial process variables, seeded into the root scope
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StartBpmnInstance {
17 /// Start variables for this instance, addressed by the process as `flow_input.<name>`. Shape them after the flow's `schema`.
18 #[serde(rename = "flow_input", skip_serializing_if = "Option::is_none")]
19 pub flow_input: Option<std::collections::HashMap<String, serde_json::Value>>,
20 /// 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.
21 #[serde(rename = "process_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
22 pub process_id: Option<Option<String>>,
23}
24
25impl StartBpmnInstance {
26 /// initial process variables, seeded into the root scope
27 pub fn new() -> StartBpmnInstance {
28 StartBpmnInstance {
29 flow_input: None,
30 process_id: None,
31 }
32 }
33}
34