pub enum WorkflowStrategyOp {
Basic {
strategy: StrategyOp,
},
Seq {
strategies: Vec<Box<WorkflowStrategyOp>>,
},
Parallel {
branches: Vec<Box<WorkflowStrategyOp>>,
completion_condition: CompletionCondition,
},
Decision {
conditions: Vec<DecisionBranch>,
default_branch: Option<Box<WorkflowStrategyOp>>,
},
Wait {
condition: WaitCondition,
timeout: Option<Duration>,
},
Saga {
main_flow: Box<WorkflowStrategyOp>,
compensation: Box<WorkflowStrategyOp>,
},
Activity {
activity_ref: String,
input_mapping: HashMap<String, String>,
retry_policy: Option<RetryPolicy>,
},
SubWorkflow {
workflow_ref: String,
input_mapping: HashMap<String, String>,
},
}
Expand description
Temporal拡張ワークフロー戦略
Variants§
Basic
既存のStrategyOpを継承
Fields
§
strategy: StrategyOp
Seq
順次実行
Fields
§
strategies: Vec<Box<WorkflowStrategyOp>>
Parallel
並列実行
Decision
条件分岐
Wait
タイマー/イベント待ち
Saga
Sagaパターン(補償トランザクション)
Activity
Activity実行
Fields
§
retry_policy: Option<RetryPolicy>
SubWorkflow
子ワークフロー実行
Trait Implementations§
Source§impl Clone for WorkflowStrategyOp
impl Clone for WorkflowStrategyOp
Source§fn clone(&self) -> WorkflowStrategyOp
fn clone(&self) -> WorkflowStrategyOp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WorkflowStrategyOp
impl Debug for WorkflowStrategyOp
Source§impl<'de> Deserialize<'de> for WorkflowStrategyOp
impl<'de> Deserialize<'de> for WorkflowStrategyOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WorkflowStrategyOp
impl RefUnwindSafe for WorkflowStrategyOp
impl Send for WorkflowStrategyOp
impl Sync for WorkflowStrategyOp
impl Unpin for WorkflowStrategyOp
impl UnwindSafe for WorkflowStrategyOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more