pub struct RedispatchModule;Expand description
Engine module for the Redispatch 2.0 process family.
Registers:
- All 8 Redispatch 2.0 workflows into the caller’s
RedispatchRouter(XML document-type routing, not PID routing). - IFTSTA PIDs 21037 and 21038 into the
PidRouter(EDIFACT-based Vollzugsmeldung, routes toredispatch-aktivierung).
§Deployment gate
Only register this module when DeploymentRoles contains at least one of
Marktrolle::Nb, Marktrolle::Unb, or Marktrolle::Anb:
ⓘ
if roles.contains_any(&[Marktrolle::Nb, Marktrolle::Unb, Marktrolle::Anb]) {
builder.register(Box::new(RedispatchModule));
}Implementations§
Source§impl RedispatchModule
impl RedispatchModule
Sourcepub fn build_router() -> RedispatchRouter
pub fn build_router() -> RedispatchRouter
Build a fully-populated RedispatchRouter for makod inbound dispatch.
Called once during daemon startup, before the HTTP/AS4 servers are bound.
§Acknowledgement routing
AcknowledgementDocument is intentionally not registered in this
router. Inbound ACKs carry a ReceivingDocumentIdentification field that
identifies the workflow instance they belong to. The makod dispatcher
resolves that correlation key against the ProcessRegistry and delivers
the ACK directly to the correct workflow instance — no document-type
routing is needed.
Trait Implementations§
Source§impl EngineModule for RedispatchModule
impl EngineModule for RedispatchModule
Source§fn workflow_names(&self) -> &'static [&'static str]
fn workflow_names(&self) -> &'static [&'static str]
Workflow names this module handles for deadline dispatch. Read more
Source§fn register_pids(&self, router: &mut PidRouter)
fn register_pids(&self, router: &mut PidRouter)
Source§fn profile_requirements(&self) -> &'static [ProfileRequirement]
fn profile_requirements(&self) -> &'static [ProfileRequirement]
Declare the EDIFACT profile types this module requires at runtime. Read more
Source§fn configure(&self) -> Result<(), String>
fn configure(&self) -> Result<(), String>
Validate adapter coverage and configuration at engine startup. Read more
Source§fn register_pids_with_roles(
&self,
router: &mut PidRouter,
_roles: &DeploymentRoles,
)
fn register_pids_with_roles( &self, router: &mut PidRouter, _roles: &DeploymentRoles, )
Register PIDs with role-context awareness. Read more
Auto Trait Implementations§
impl Freeze for RedispatchModule
impl RefUnwindSafe for RedispatchModule
impl Send for RedispatchModule
impl Sync for RedispatchModule
impl Unpin for RedispatchModule
impl UnsafeUnpin for RedispatchModule
impl UnwindSafe for RedispatchModule
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