pub enum Action {
CallActivity {
scheduling_event_id: u64,
name: String,
input: String,
},
CreateTimer {
scheduling_event_id: u64,
fire_at_ms: u64,
},
WaitExternal {
scheduling_event_id: u64,
name: String,
},
StartOrchestrationDetached {
scheduling_event_id: u64,
name: String,
version: Option<String>,
instance: String,
input: String,
},
StartSubOrchestration {
scheduling_event_id: u64,
name: String,
version: Option<String>,
instance: String,
input: String,
},
ContinueAsNew {
input: String,
version: Option<String>,
},
SystemCall {
scheduling_event_id: u64,
op: String,
value: String,
},
}Expand description
Declarative decisions produced by an orchestration turn. The host/provider
is responsible for materializing these into corresponding Events.
Variants§
CallActivity
Schedule an activity invocation. scheduling_event_id is the event_id of the ActivityScheduled event.
CreateTimer
Create a timer that will fire at the specified absolute time. scheduling_event_id is the event_id of the TimerCreated event. fire_at_ms is the absolute timestamp (ms since epoch) when the timer should fire.
WaitExternal
Subscribe to an external event by name. scheduling_event_id is the event_id of the ExternalSubscribed event.
StartOrchestrationDetached
Start a detached orchestration (no result routing back to parent).
StartSubOrchestration
Start a sub-orchestration by name and child instance id. scheduling_event_id is the event_id of the SubOrchestrationScheduled event.
ContinueAsNew
Continue the current orchestration as a new execution with new input (terminal for current execution). Optional version string selects the target orchestration version for the new execution.
SystemCall
System call executed synchronously (no worker dispatch needed).