MailevaRouteurStable

Route postal mail status (Maileva)

Routes an already-hydrated Maileva letter according to its normalized status, without another provider call.

Vue d’ensemble

Routes an already-hydrated Maileva letter according to its normalized status, without another provider call.

Exemple

After get_postal_mail, separate delivered letters from returns or failures.

Decision routes

in_progress

En cours

The Maileva letter is still being processed or delivered.

Recommended actionWait for a new state before concluding on delivery.
delivered

Delivered

Maileva indicates that the letter was delivered.

Recommended actionContinue to archiving or proof download as needed.
returned

Returned

The letter was not delivered normally and was returned.

Recommended actionAddress the address or recipient issue before trying again.
cancelled

Canceled

The mailing was canceled before completion.

Recommended actionStop steps that assume successful delivery.
failed

Failed

Maileva reports an operational failure of the mailing.

Recommended actionInspect provider state and correct the cause before retrying.
unknown

Unknown state

The provider state does not match a category known to the router.

Recommended actionDo not continue automatically; inspect the status before defining a rule.

Parameters 1

postal_mailRequisMaileva postal mail
Existing Maileva letter used to refresh its state or download proof.

Outputs 2

selected_routeenum
Business route selected from the observed state or decision.
selected_valueenum
State value that determined the Maileva route.

Behavior

The router reads only the state present on the supplied object and chooses the corresponding branch.

Limits and responsibilities

  • The node does not refresh the object; use get_postal_mail when its state may be stale.
  • unknown must remain an explicit review branch.