feat(domain): withdrawal cancels the registratie process (S-11b, refs #12) #89
Reference in New Issue
Block a user
Delete Branch "feat/12-withdrawal-workflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
Second sub-slice of S-11 · Withdrawal (Flow 3) (#12). S-11a (#88) made a withdrawal advance the aggregate to INGETROKKEN; this sub-slice cancels the running Flowable process so the withdrawn case leaves the behandelaar's werkbak.
registratie.bpmn): an interrupting message boundary event (RegistratieIngetrokken) on theBeoordelentask, routing to a dedicated "Registratie ingetrokken" end event.WithdrawBeoordelingAsync(executionId)deliversmessageEventReceivedto the task's execution (PUT);BeoordelingTasknow carries itsexecutionId.WithdrawRegistrationhandler: after the domain transition, finds the openBeoordelentask for the registration and delivers the withdrawal message — best-effort, mirroring how the beoordeling completes its task.run-domain-check.sh): a second registration parks atBeoordelen, is withdrawn via the domain, and the check asserts itsBeoordelentask disappears — so verify-stack validates the live Flowable message correlation.Refs #12 (S-11c — the BFF + self-service "trek aanvraag in" button + e2e — closes it).
Definition of Done
refs #12).docker compose upunaffected (BPMN redeploys on a fresh CI DB via flowable-init).Notes for reviewers
Big.Tests94/94 pass;Big.Apibuilds;registratie.bpmnis well-formed.run-domain-check.shwithdrawal step is that live check.Beoordelenfinds no task to cancel; the aggregate is still INGETROKKEN and the werkbak filter hides it, but that instance parks unattended. A process-level event subprocess would close the gap — deferred.