MCP Server
Active
1
0
Files
AI-Sandb-Evaluation/processes/L4/vdaa.mi.sandbox.atlase/cmmn/vertesanas-lieta.cmmn.xml
Rihards a53db316f5 Add diagram interchange (CMMNDI) to cornerstone CMMN [scope-3 1/3]
UAPF-specification v2.1.0 (SEM-011) makes cornerstone diagram interchange
mandatory. This CMMN file was hand-authored as logic only, with no
<cmmndi:CMMNDI>, so it did not render in any CMMN viewer.

Adds a complete CMMNDI: a nested layout of 20 shapes -- 1 case plan model,
4 stages, 11 plan items, 3 milestones, 1 entry criterion -- with child
bounds geometrically contained within their parents. The case model logic
is byte-identical; only diagram interchange was added.
2026-05-17 13:04:35 +00:00

139 lines
7.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<cmmn:definitions xmlns:cmmn="http://www.omg.org/spec/CMMN/20151109/MODEL"
xmlns:cmmndi="http://www.omg.org/spec/CMMN/20151109/CMMNDI"
xmlns:dc="http://www.omg.org/spec/CMMN/20151109/DC"
id="Definitions_EvaluationCase"
targetNamespace="https://processgit.org/VDAA/mi-sandbox-atlase/cmmn">
<cmmn:case id="Case_ProjectEvaluation" name="MI projekta iesnieguma vērtēšanas lieta">
<cmmn:casePlanModel id="CPM_Evaluation" name="Vērtēšanas lieta">
<!-- === Required stages === -->
<cmmn:stage id="Stage_FormalCheck" name="Formālā pārbaude">
<cmmn:planItem id="PI_RegisterApp" definitionRef="HT_RegisterApp"/>
<cmmn:planItem id="PI_RunEligibility" definitionRef="PT_RunEligibility"/>
<cmmn:planItem id="PI_RequestFix" definitionRef="HT_RequestFix">
<cmmn:entryCriterion id="EC_NeedsFix" sentryRef="Sentry_NeedsFix"/>
</cmmn:planItem>
</cmmn:stage>
<cmmn:stage id="Stage_ExpertOpinion" name="Kompetento institūciju atzinumi">
<cmmn:planItem id="PI_SendToAuthority" definitionRef="HT_SendToAuthority"/>
<cmmn:planItem id="PI_CollectOpinions" definitionRef="HT_CollectOpinions"/>
</cmmn:stage>
<cmmn:stage id="Stage_CommissionEval" name="Komisijas vērtēšana">
<cmmn:planItem id="PI_ScoreCriteria" definitionRef="HT_ScoreCriteria"/>
<cmmn:planItem id="PI_RunScoring" definitionRef="PT_RunScoring"/>
<!-- Discretionary: commission may involve external experts (Nolikuma 19.p.) -->
<cmmn:planItem id="PI_ExternalExpert" definitionRef="HT_ExternalExpert">
<cmmn:itemControl><cmmn:manualActivationRule/></cmmn:itemControl>
</cmmn:planItem>
<!-- Discretionary: AI agent pre-assessment -->
<cmmn:planItem id="PI_AIPreAssessment" definitionRef="PT_AIPreAssessment">
<cmmn:itemControl><cmmn:manualActivationRule/></cmmn:itemControl>
</cmmn:planItem>
</cmmn:stage>
<cmmn:stage id="Stage_Decision" name="Lēmuma pieņemšana">
<cmmn:planItem id="PI_PrepareDecision" definitionRef="HT_PrepareDecision"/>
<cmmn:planItem id="PI_NotifyApplicant" definitionRef="HT_NotifyApplicant"/>
</cmmn:stage>
<!-- === Milestones === -->
<cmmn:milestone id="MS_Eligible" name="Iesniegums atzīts par atbilstošu"/>
<cmmn:milestone id="MS_OpinionsReceived" name="Visi atzinumi saņemti"/>
<cmmn:milestone id="MS_Scored" name="Punkti aprēķināti"/>
<!-- === Sentries === -->
<cmmn:sentry id="Sentry_NeedsFix">
<cmmn:planItemOnPart sourceRef="PI_RunEligibility">
<cmmn:standardEvent>complete</cmmn:standardEvent>
</cmmn:planItemOnPart>
<cmmn:ifPart><cmmn:condition>eligibilityResult.status = "FIX_OR_REJECT"</cmmn:condition></cmmn:ifPart>
</cmmn:sentry>
</cmmn:casePlanModel>
<!-- === Task Definitions === -->
<cmmn:humanTask id="HT_RegisterApp" name="Reģistrēt iesniegumu"/>
<cmmn:processTask id="PT_RunEligibility" name="Izpildīt atbilstības DMN" processRef="dmn/01-atbilstiba-un-izsledzosie.dmn.xml"/>
<cmmn:humanTask id="HT_RequestFix" name="Pieprasīt trūkumu novēršanu (5 d.d.)"/>
<cmmn:humanTask id="HT_SendToAuthority" name="Nosūtīt kompetentajām institūcijām"/>
<cmmn:humanTask id="HT_CollectOpinions" name="Apkopot saņemtos atzinumus"/>
<cmmn:humanTask id="HT_ScoreCriteria" name="Piešķirt 0–5 vērtējumus katram kritērijam"/>
<cmmn:processTask id="PT_RunScoring" name="Izpildīt punktu aprēķina DMN" processRef="dmn/02-vertesanas-punkti.dmn.xml"/>
<cmmn:humanTask id="HT_ExternalExpert" name="Piesaistīt ārējo ekspertu (Nolikuma 19.p.)"/>
<cmmn:processTask id="PT_AIPreAssessment" name="AI aģenta iepriekšējais novērtējums (demo)"/>
<cmmn:humanTask id="HT_PrepareDecision" name="Sagatavot pamatotu lēmumu"/>
<cmmn:humanTask id="HT_NotifyApplicant" name="Paziņot lēmumu (≤45 dienas)"/>
</cmmn:case>
<cmmndi:CMMNDI>
<cmmndi:CMMNDiagram id="CMMNDiagram_1">
<cmmndi:CMMNShape id="DI_CPM_Evaluation" cmmnElementRef="CPM_Evaluation">
<dc:Bounds x="30" y="30" width="1480" height="560"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_Stage_FormalCheck" cmmnElementRef="Stage_FormalCheck">
<dc:Bounds x="60" y="80" width="340" height="380"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_Stage_ExpertOpinion" cmmnElementRef="Stage_ExpertOpinion">
<dc:Bounds x="420" y="80" width="340" height="380"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_Stage_CommissionEval" cmmnElementRef="Stage_CommissionEval">
<dc:Bounds x="780" y="80" width="340" height="400"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_Stage_Decision" cmmnElementRef="Stage_Decision">
<dc:Bounds x="1140" y="80" width="340" height="380"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_PI_RegisterApp" cmmnElementRef="PI_RegisterApp">
<dc:Bounds x="90" y="130" width="280" height="50"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_PI_RunEligibility" cmmnElementRef="PI_RunEligibility">
<dc:Bounds x="90" y="200" width="280" height="50"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_PI_RequestFix" cmmnElementRef="PI_RequestFix">
<dc:Bounds x="90" y="270" width="280" height="50"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_PI_SendToAuthority" cmmnElementRef="PI_SendToAuthority">
<dc:Bounds x="450" y="130" width="280" height="50"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_PI_CollectOpinions" cmmnElementRef="PI_CollectOpinions">
<dc:Bounds x="450" y="200" width="280" height="50"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_PI_ScoreCriteria" cmmnElementRef="PI_ScoreCriteria">
<dc:Bounds x="810" y="130" width="280" height="50"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_PI_RunScoring" cmmnElementRef="PI_RunScoring">
<dc:Bounds x="810" y="200" width="280" height="50"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_PI_ExternalExpert" cmmnElementRef="PI_ExternalExpert">
<dc:Bounds x="810" y="270" width="280" height="50"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_PI_AIPreAssessment" cmmnElementRef="PI_AIPreAssessment">
<dc:Bounds x="810" y="340" width="280" height="50"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_PI_PrepareDecision" cmmnElementRef="PI_PrepareDecision">
<dc:Bounds x="1170" y="130" width="280" height="50"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_PI_NotifyApplicant" cmmnElementRef="PI_NotifyApplicant">
<dc:Bounds x="1170" y="200" width="280" height="50"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_MS_Eligible" cmmnElementRef="MS_Eligible">
<dc:Bounds x="120" y="500" width="160" height="40"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_MS_OpinionsReceived" cmmnElementRef="MS_OpinionsReceived">
<dc:Bounds x="480" y="500" width="160" height="40"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_MS_Scored" cmmnElementRef="MS_Scored">
<dc:Bounds x="840" y="500" width="160" height="40"/>
</cmmndi:CMMNShape>
<cmmndi:CMMNShape id="DI_EC_NeedsFix" cmmnElementRef="EC_NeedsFix">
<dc:Bounds x="83" y="285" width="14" height="20"/>
</cmmndi:CMMNShape>
</cmmndi:CMMNDiagram>
</cmmndi:CMMNDI>
</cmmn:definitions>