From 9bd71f1e780dea0bd258cd275ce8f8a40c764015 Mon Sep 17 00:00:00 2001 From: Niek Otten Date: Mon, 20 Jul 2026 09:53:01 +0200 Subject: [PATCH] feat(workflow): WachtOpDocumenten wait task + 30-day timeout cancellation (refs #102) Inserts a WachtOpDocumenten user task after OpenZaakAanmaken with an interrupting P30D boundary timer: "documents received" completes it and the process continues to the diploma routing; on timeout the RegistratieVerlopen external-worker task runs and the process ends as verlopen (ADR-0017). Verified live against flowable-rest: complete -> routes to Beoordelen; timer fire -> RegistratieVerlopen job (carrying registrationId) + the wait task cancelled. Co-Authored-By: Claude Opus 4.8 (1M context) --- workflows/registratie.bpmn | 119 +++++++++++++++++++++++++++---------- 1 file changed, 87 insertions(+), 32 deletions(-) diff --git a/workflows/registratie.bpmn b/workflows/registratie.bpmn index 360297e..669a6ab 100644 --- a/workflows/registratie.bpmn +++ b/workflows/registratie.bpmn @@ -22,10 +22,16 @@ (BeoordelingEscaleren); the Workflow Client reassigns the still-open Beoordelen task from the behandelaar group to teamlead (ADR-0015). The Beoordelen task stays open throughout — the timer only changes who may claim it. - S-13 adds diploma-eligibility routing: between OpenZaakAanmaken and Beoordelen a DMN service + S-13 adds diploma-eligibility routing: between the document wait and Beoordelen a DMN service task (flowable:type="dmn") evaluates the `diploma-eligibility` decision on the diplomaOrigin start variable; an exclusive gateway routes a foreign diploma through the CBGV-advies user task - before Beoordelen, a domestic one straight there (ADR-0016). --> + before Beoordelen, a domestic one straight there (ADR-0016). + S-10a adds the document wait: right after the zaak is opened the process parks at a + WachtOpDocumenten user task with an INTERRUPTING P30D boundary timer. "Documents received" + (the S-10b upload, via the Workflow Client) completes the task and the process continues to the + diploma routing; if the 30 days lapse first the timer cancels the task and runs the + RegistratieVerlopen external-worker task, whose worker expires the registration to VERLOPEN, + ending the process as "verlopen" (ADR-0017). --> @@ -38,7 +44,32 @@ flowable:type="external-worker" flowable:topic="OpenZaakAanmaken"/> - + + + + + + + + + + P30D + + + + + + + + + + +