Critical flow
What happens when approval withdrawal races with payout initiation?
Trace the failure through the architecture: the payment service pays 45,000 cents, but its response is lost. The claim remains auszahlung_offen; payment operations queries Z-31. A new document version cannot retroactively erase this already-started effect. Durable acceptance, actual effect and response are considered separately.
Starting point Store document objects separately and keep only verified references in the case.
Assumptions for the example case
Fictitious example design: a simple property claim under one policy; manual coverage decision based on a fixed document version; one full payout in EUR; reasoned rejection and a later reassessment as a separate process. Figures and quality targets are illustrative test assumptions. Automatic claim rejection by AI, fraud investigation, partial payments and comprehensive statutory deadline calculation are outside scope.
Failure point in the sequence
Payment with loss of response and reconciliation
Z-31 is persisted locally; the payment service pays 45,000 cents, but its response is lost.
Result: Exactly one payout; the evidence remains linked to D-3 and E-31.
A missing result remains open; new documents do not delete the started order.
Effect, response and recovery
- Specific error
- The payment service pays 45,000 cents, but its response is lost. The claim remains auszahlung_offen; payment operations queries Z-31. A new document version cannot retroactively erase this already-started effect.
- Before and after commit
- Commit durably completes the local change. Before commit, the old state remains valid; afterwards, an identical retry returns the stored outcome. Reconcile the external effect using its existing reference.
- Retry behaviour
- Send Z-31 with the same decision reference twice: one payout. The same key with a different recipient or 45,001 cents conflicts. Resubmitting an identical document file with the same hash creates no new review version.
Protect a payout already started
Serialise the transition to stored Z-31 against withdrawal.
Approval withdrawal and payout initiation arrive concurrently.
Both commit orders yield explicit states and prevent hidden payouts.
- Alternative considered
- Freely rewriting the approval field loses evidence of an already-started effect.
- Trade-off
- After payout initiation, withdrawal requires a separate investigation.
- Reassess
- The provider offers a provable cancellation contract before execution.
Terms in this step
- Protect a payout already started
- Both commit orders yield explicit states and prevent hidden payouts.
Try it yourself
Execute approval withdrawal and payout initiation in both orders. State the command outcome and permitted next step.
A hint for your attempt
Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.
Compare with a possible solution
- First part of the solution
- Withdrawal first prevents Z-31 entirely. Payout initiation first persists Z-31 and rejects the concurrent withdrawal with a conflict.
- Second part of the solution
- Investigate open Z-31 until its outcome is evidenced. Withdrawal must not hide a possible external effect.
Apply to your project
Which corresponding assumption would you check first in your project when the provider offers evidenced cancellation before execution?