Add workflows/diploma-eligibility.dmn (origin → route) and wire the registratie BPMN: a businessRuleTask evaluates it inline and an exclusive gateway routes a foreign diploma through a new CBGVAdvies user task before Beoordelen, a domestic one straight there (ADR-0016). Deploy the DMN to Flowable's DMN engine and stage both workflow files into the fl-bpmn volume. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
190 lines
9.6 KiB
XML
190 lines
9.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
|
xmlns:flowable="http://flowable.org/bpmn"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
|
|
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
|
|
xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
|
|
targetNamespace="http://respellion.nl/big">
|
|
|
|
<!-- Registratie ontvangen flow.
|
|
start -> external-worker task (OpenZaakAanmaken) -> Beoordelen (behandelaar user task) -> end.
|
|
S-03 added the external task (Workflow Client / ACL). S-12 adds the behandelaar's beoordeling
|
|
as a user task: the process parks here until a behandelaar claims and completes it with a
|
|
`besluit` (goedkeuren/afwijzen). The registrationId set at start rides along as a process
|
|
variable so the werkbak can correlate each task back to its aggregate.
|
|
S-11 adds withdrawal: while parked at Beoordelen the citizen can trek de aanvraag in — an
|
|
interrupting message boundary event (RegistratieIngetrokken) cancels the task and ends the
|
|
process via a dedicated "ingetrokken" end (ADR-0014). The Workflow Client delivers the message
|
|
to the task's execution; the BPMN owns the cancellation path.
|
|
S-14 adds escalation: a NON-interrupting boundary timer (P14D) on Beoordelen. If a behandelaar
|
|
has not picked the task up within 14 days it fires a parallel token to an external-worker task
|
|
(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
|
|
businessRuleTask 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). -->
|
|
<message id="Message_Ingetrokken" name="RegistratieIngetrokken"/>
|
|
|
|
<process id="registratie" name="Registratie ontvangen" isExecutable="true">
|
|
|
|
<startEvent id="start" name="Registratie ontvangen"/>
|
|
|
|
<sequenceFlow id="flow1" sourceRef="start" targetRef="OpenZaakAanmaken"/>
|
|
|
|
<serviceTask id="OpenZaakAanmaken" name="OpenZaak aanmaken"
|
|
flowable:type="external-worker"
|
|
flowable:topic="OpenZaakAanmaken"/>
|
|
|
|
<sequenceFlow id="flow2" sourceRef="OpenZaakAanmaken" targetRef="DiplomaEligibiliteit"/>
|
|
|
|
<!-- S-13: evaluate the diploma-eligibility DMN inline (ADR-0016). Flowable runs the deployed
|
|
`diploma-eligibility` decision against the diplomaOrigin start variable and sets the `route`
|
|
output as a process variable. The gateway then routes a foreign diploma through CBGV-advies,
|
|
a domestic one straight to Beoordelen. -->
|
|
<businessRuleTask id="DiplomaEligibiliteit" name="Diploma-eligibiliteit bepalen" flowable:type="dmn">
|
|
<extensionElements>
|
|
<flowable:field name="decisionTableReferenceKey">
|
|
<flowable:string><![CDATA[diploma-eligibility]]></flowable:string>
|
|
</flowable:field>
|
|
</extensionElements>
|
|
</businessRuleTask>
|
|
|
|
<sequenceFlow id="flow2a" sourceRef="DiplomaEligibiliteit" targetRef="RouteOpDiploma"/>
|
|
|
|
<exclusiveGateway id="RouteOpDiploma" name="Buitenlands diploma?" default="flowDirect"/>
|
|
|
|
<sequenceFlow id="flowCbgv" sourceRef="RouteOpDiploma" targetRef="CBGVAdvies">
|
|
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${route == 'CBGV_ADVIES'}]]></conditionExpression>
|
|
</sequenceFlow>
|
|
|
|
<!-- The extra CBGV-style assessment for foreign diplomas (PRD flow 4). A CBGV medewerker
|
|
completes it, after which the case continues to the regular beoordeling. -->
|
|
<userTask id="CBGVAdvies" name="CBGV-advies" flowable:candidateGroups="cbgv"/>
|
|
|
|
<sequenceFlow id="flowCbgvNaarBeoordelen" sourceRef="CBGVAdvies" targetRef="Beoordelen"/>
|
|
|
|
<sequenceFlow id="flowDirect" sourceRef="RouteOpDiploma" targetRef="Beoordelen"/>
|
|
|
|
<userTask id="Beoordelen" name="Beoordelen" flowable:candidateGroups="behandelaar"/>
|
|
|
|
<sequenceFlow id="flow3" sourceRef="Beoordelen" targetRef="end"/>
|
|
|
|
<endEvent id="end" name="Registratie beoordeeld"/>
|
|
|
|
<!-- Withdrawal (S-11): interrupting message boundary event on Beoordelen. On RegistratieIngetrokken
|
|
the task is cancelled and the process ends as "ingetrokken". -->
|
|
<boundaryEvent id="Ingetrokken" attachedToRef="Beoordelen" cancelActivity="true">
|
|
<messageEventDefinition messageRef="Message_Ingetrokken"/>
|
|
</boundaryEvent>
|
|
|
|
<sequenceFlow id="flow4" sourceRef="Ingetrokken" targetRef="endIngetrokken"/>
|
|
|
|
<endEvent id="endIngetrokken" name="Registratie ingetrokken"/>
|
|
|
|
<!-- Escalation (S-14): non-interrupting P14D boundary timer on Beoordelen. On timeout a parallel
|
|
token runs EscaleerBeoordeling, an external-worker task the Workflow Client picks up to
|
|
reassign the still-open Beoordelen task from behandelaar to teamlead (ADR-0015). -->
|
|
<boundaryEvent id="EscaleerTimer" attachedToRef="Beoordelen" cancelActivity="false">
|
|
<timerEventDefinition>
|
|
<timeDuration>P14D</timeDuration>
|
|
</timerEventDefinition>
|
|
</boundaryEvent>
|
|
|
|
<sequenceFlow id="flow5" sourceRef="EscaleerTimer" targetRef="EscaleerBeoordeling"/>
|
|
|
|
<serviceTask id="EscaleerBeoordeling" name="Beoordeling escaleren"
|
|
flowable:type="external-worker"
|
|
flowable:topic="BeoordelingEscaleren"/>
|
|
|
|
<sequenceFlow id="flow6" sourceRef="EscaleerBeoordeling" targetRef="endEscaleren"/>
|
|
|
|
<endEvent id="endEscaleren" name="Beoordeling geëscaleerd"/>
|
|
</process>
|
|
|
|
<bpmndi:BPMNDiagram id="diagram">
|
|
<bpmndi:BPMNPlane id="plane" bpmnElement="registratie">
|
|
<bpmndi:BPMNShape id="s_start" bpmnElement="start">
|
|
<omgdc:Bounds x="100" y="100" width="30" height="30"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="s_task" bpmnElement="OpenZaakAanmaken">
|
|
<omgdc:Bounds x="180" y="85" width="120" height="60"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="s_dmn" bpmnElement="DiplomaEligibiliteit">
|
|
<omgdc:Bounds x="350" y="85" width="120" height="60"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="s_route" bpmnElement="RouteOpDiploma" isMarkerVisible="true">
|
|
<omgdc:Bounds x="520" y="90" width="40" height="40"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="s_cbgv" bpmnElement="CBGVAdvies">
|
|
<omgdc:Bounds x="500" y="200" width="120" height="60"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="s_beoordelen" bpmnElement="Beoordelen">
|
|
<omgdc:Bounds x="630" y="85" width="120" height="60"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="s_end" bpmnElement="end">
|
|
<omgdc:Bounds x="810" y="100" width="30" height="30"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="s_ingetrokken" bpmnElement="Ingetrokken">
|
|
<omgdc:Bounds x="690" y="135" width="30" height="30"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="s_endIngetrokken" bpmnElement="endIngetrokken">
|
|
<omgdc:Bounds x="690" y="250" width="30" height="30"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="s_escaleerTimer" bpmnElement="EscaleerTimer">
|
|
<omgdc:Bounds x="700" y="70" width="30" height="30"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="s_escaleerBeoordeling" bpmnElement="EscaleerBeoordeling">
|
|
<omgdc:Bounds x="800" y="20" width="120" height="60"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="s_endEscaleren" bpmnElement="endEscaleren">
|
|
<omgdc:Bounds x="970" y="35" width="30" height="30"/>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="e_flow1" bpmnElement="flow1">
|
|
<omgdi:waypoint x="130" y="115"/>
|
|
<omgdi:waypoint x="180" y="115"/>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="e_flow2" bpmnElement="flow2">
|
|
<omgdi:waypoint x="300" y="115"/>
|
|
<omgdi:waypoint x="350" y="115"/>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="e_flow2a" bpmnElement="flow2a">
|
|
<omgdi:waypoint x="470" y="115"/>
|
|
<omgdi:waypoint x="520" y="110"/>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="e_flowDirect" bpmnElement="flowDirect">
|
|
<omgdi:waypoint x="560" y="110"/>
|
|
<omgdi:waypoint x="630" y="115"/>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="e_flowCbgv" bpmnElement="flowCbgv">
|
|
<omgdi:waypoint x="540" y="130"/>
|
|
<omgdi:waypoint x="540" y="200"/>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="e_flowCbgvNaarBeoordelen" bpmnElement="flowCbgvNaarBeoordelen">
|
|
<omgdi:waypoint x="620" y="230"/>
|
|
<omgdi:waypoint x="660" y="230"/>
|
|
<omgdi:waypoint x="660" y="145"/>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="e_flow3" bpmnElement="flow3">
|
|
<omgdi:waypoint x="750" y="115"/>
|
|
<omgdi:waypoint x="810" y="115"/>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="e_flow4" bpmnElement="flow4">
|
|
<omgdi:waypoint x="705" y="165"/>
|
|
<omgdi:waypoint x="705" y="250"/>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="e_flow5" bpmnElement="flow5">
|
|
<omgdi:waypoint x="715" y="70"/>
|
|
<omgdi:waypoint x="715" y="50"/>
|
|
<omgdi:waypoint x="800" y="50"/>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="e_flow6" bpmnElement="flow6">
|
|
<omgdi:waypoint x="920" y="50"/>
|
|
<omgdi:waypoint x="970" y="50"/>
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</definitions>
|