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
/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 3.2.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// BpmnMigrationRequested : A stored migration request (#925). The migration has **not** happened: the engine applies it at the top of the instance's next step, together with the pin move and the ledger row. What was written into `control.migrate` is the mapping document; `plan` is what the engine will re-derive from it, returned for the caller's information only.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnMigrationRequested {
#[serde(rename = "from_version")]
pub from_version: i64,
#[serde(rename = "to_version")]
pub to_version: i64,
#[serde(rename = "bpmn_flow_path")]
pub bpmn_flow_path: String,
/// the resolved plan rewrites nothing
#[serde(rename = "identity")]
pub identity: bool,
/// validated only -- no request was stored
#[serde(rename = "dry_run")]
pub dry_run: bool,
#[serde(rename = "plan")]
pub plan: Box<models::BpmnMigrationPlan>,
}
impl BpmnMigrationRequested {
/// A stored migration request (#925). The migration has **not** happened: the engine applies it at the top of the instance's next step, together with the pin move and the ledger row. What was written into `control.migrate` is the mapping document; `plan` is what the engine will re-derive from it, returned for the caller's information only.
pub fn new(from_version: i64, to_version: i64, bpmn_flow_path: String, identity: bool, dry_run: bool, plan: models::BpmnMigrationPlan) -> BpmnMigrationRequested {
BpmnMigrationRequested {
from_version,
to_version,
bpmn_flow_path,
identity,
dry_run,
plan: Box::new(plan),
}
}
}