pub struct StammdatenWorkflow;Expand description
Stammdatenübermittlung workflow for Redispatch 2.0.
Handles the reception, acknowledgement, and optional forwarding of
Stammdaten documents exchanged between ANB, VNB, and ÜNB.
Spawn via mako_engine::process::Process:
ⓘ
let process = ctx.spawn::<StammdatenWorkflow>(
tenant_id,
WorkflowId::new(WORKFLOW_NAME, "FV2025-10-01"),
);Trait Implementations§
Source§impl Workflow for StammdatenWorkflow
impl Workflow for StammdatenWorkflow
Source§fn on_deadline(
deadline: &Deadline,
state: &Self::State,
) -> Option<Self::Command>
fn on_deadline( deadline: &Deadline, state: &Self::State, ) -> Option<Self::Command>
Fire deadline commands when the ACK or forward windows expire.
Source§type State = StammdatenState
type State = StammdatenState
Domain-specific process state, reconstructed by replaying events.
Source§type Event = StammdatenEvent
type Event = StammdatenEvent
Domain event type emitted by this workflow.
Source§type Command = StammdatenCommand
type Command = StammdatenCommand
Command type handled by this workflow.
Source§fn apply(state: Self::State, event: &Self::Event) -> Self::State
fn apply(state: Self::State, event: &Self::Event) -> Self::State
Fold a domain event into the current state. Read more
Source§fn handle(
state: &Self::State,
command: Self::Command,
) -> Result<WorkflowOutput<Self::Event>, WorkflowError>
fn handle( state: &Self::State, command: Self::Command, ) -> Result<WorkflowOutput<Self::Event>, WorkflowError>
Source§fn state_schema_version() -> u32
fn state_schema_version() -> u32
Schema version for serialized
Workflow::State payloads. Read moreSource§fn upcast(
_event_type: &str,
_from_version: u32,
payload: Value,
) -> Result<Value, EngineError>
fn upcast( _event_type: &str, _from_version: u32, payload: Value, ) -> Result<Value, EngineError>
Upcast a stored event payload from an older schema version. Read more
Source§fn version_policy() -> WorkflowVersionPolicy
fn version_policy() -> WorkflowVersionPolicy
Declares which BDEW format versions this workflow accepts for in-flight
processes. Read more
Auto Trait Implementations§
impl Freeze for StammdatenWorkflow
impl RefUnwindSafe for StammdatenWorkflow
impl Send for StammdatenWorkflow
impl Sync for StammdatenWorkflow
impl Unpin for StammdatenWorkflow
impl UnsafeUnpin for StammdatenWorkflow
impl UnwindSafe for StammdatenWorkflow
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