feat(domain): withdrawal — INGETROKKEN transition + endpoint (S-11a, refs #12) #88
Reference in New Issue
Block a user
Delete Branch "feat/12-withdrawal"
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
First sub-slice of S-11 · Withdrawal (Flow 3) (#12). A zorgprofessional can withdraw a still-open registration ("trek aanvraag in"); this sub-slice delivers the domain transition + endpoint, mirroring how S-12a shipped the beoordeling decision model on its own (#82).
RegistrationStatus.Ingetrokken(terminal).Registration.Withdraw()— allowed from INGEDIEND or IN_BEHANDELING, needs no zaak, idempotent, and rejected once the registration has been decided (INGESCHREVEN/AFGEWEZEN).WithdrawRegistrationapplication handler (load → withdraw → persist; repeated withdrawal is a no-op).POST /registrations/{id}/withdrawon the domain API.Demoable:
POST /registrations/{id}/withdraw→GET /registrations/{id}showsINGETROKKEN.Refs #12 (not closing — see below).
Scope / follow-ups
S-11 is bigger than one slice, so it is split (CLAUDE.md §13), like S-12 was:
Cancelling the Flowable process is deliberately deferred (documented in
WithdrawRegistration), exactly as the beoordeling's rejection deferred its zaak propagation. #12 stays open until S-11c.Definition of Done
refs #12).docker compose upunaffected (no infra/contract change).Notes for reviewers
Big.Tests89/89 pass;Big.Apibuilds clean.