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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 4.0.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// CmmnDefinitionKind : What kind of thing the plan item's definition is. `orvanta_cmmn::DefinitionKind` carries one further, payload-bearing variant --- `Unsupported(name)`, for a recognised CMMN definition outside the GA allowlist. It cannot appear here: admission turns it into a named deploy-time refusal, so a document containing one never reaches a running case. Declared as a flat enum for that reason.
/// What kind of thing the plan item's definition is. `orvanta_cmmn::DefinitionKind` carries one further, payload-bearing variant --- `Unsupported(name)`, for a recognised CMMN definition outside the GA allowlist. It cannot appear here: admission turns it into a named deploy-time refusal, so a document containing one never reaches a running case. Declared as a flat enum for that reason.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CmmnDefinitionKind {
#[serde(rename = "Stage")]
Stage,
#[serde(rename = "PlanFragment")]
PlanFragment,
#[serde(rename = "Task")]
Task,
#[serde(rename = "HumanTask")]
HumanTask,
#[serde(rename = "ProcessTask")]
ProcessTask,
#[serde(rename = "CaseTask")]
CaseTask,
#[serde(rename = "DecisionTask")]
DecisionTask,
#[serde(rename = "Milestone")]
Milestone,
#[serde(rename = "UserEventListener")]
UserEventListener,
#[serde(rename = "TimerEventListener")]
TimerEventListener,
}
impl std::fmt::Display for CmmnDefinitionKind {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Stage => write!(f, "Stage"),
Self::PlanFragment => write!(f, "PlanFragment"),
Self::Task => write!(f, "Task"),
Self::HumanTask => write!(f, "HumanTask"),
Self::ProcessTask => write!(f, "ProcessTask"),
Self::CaseTask => write!(f, "CaseTask"),
Self::DecisionTask => write!(f, "DecisionTask"),
Self::Milestone => write!(f, "Milestone"),
Self::UserEventListener => write!(f, "UserEventListener"),
Self::TimerEventListener => write!(f, "TimerEventListener"),
}
}
}
impl Default for CmmnDefinitionKind {
fn default() -> CmmnDefinitionKind {
Self::Stage
}
}