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
/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 3.0.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// SearchBpmnNode : One projected element (or the process itself) from a BPMN document's search projection (#659) — id/name plus, on a scriptTask/serviceTask or businessRuleTask, its script or decision binding.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchBpmnNode {
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "script_path", skip_serializing_if = "Option::is_none")]
pub script_path: Option<String>,
#[serde(rename = "script_hash", skip_serializing_if = "Option::is_none")]
pub script_hash: Option<String>,
#[serde(rename = "decision_ref", skip_serializing_if = "Option::is_none")]
pub decision_ref: Option<String>,
}
impl SearchBpmnNode {
/// One projected element (or the process itself) from a BPMN document's search projection (#659) — id/name plus, on a scriptTask/serviceTask or businessRuleTask, its script or decision binding.
pub fn new(id: String) -> SearchBpmnNode {
SearchBpmnNode {
id,
name: None,
script_path: None,
script_hash: None,
decision_ref: None,
}
}
}