1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 6.3.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NewBpmnFlow {
#[serde(rename = "path")]
pub path: String,
#[serde(rename = "summary")]
pub summary: String,
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "bpmn_xml")]
pub bpmn_xml: String,
/// JSON Schema of the process's start variables (the `flow_input` accepted by `POST /bpmn/run/p/{path}`). Optional: when omitted, it is derived server-side from the deployed diagram — declared start form properties plus variables the process reads but never sets. Supply one only to override that derivation.
#[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
pub schema: Option<serde_json::Value>,
/// Park the document without deploying it. A draft skips parsing, validation, delegate resolution and schema derivation entirely (#488) -- it is *allowed* to be structurally invalid. It starts no timer schedule, produces no `deployment_metadata` row, reaches no git repository and cannot be run. `update` is the deploy path and validates unconditionally. Default `false`.
#[serde(rename = "draft_only", skip_serializing_if = "Option::is_none")]
pub draft_only: Option<bool>,
#[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
pub labels: Option<Vec<String>>,
}
impl NewBpmnFlow {
pub fn new(path: String, summary: String, bpmn_xml: String) -> NewBpmnFlow {
NewBpmnFlow {
path,
summary,
description: None,
bpmn_xml,
schema: None,
draft_only: None,
labels: None,
}
}
}