1
0

Import UAPF package: varam-docproc_valid.uapf

This commit is contained in:
2026-02-09 12:23:41 +00:00
parent aba0f6d83d
commit eede1f1d1b
12 changed files with 414 additions and 0 deletions

38
agents/bindings.json Normal file
View File

@@ -0,0 +1,38 @@
{
"bindings": [
{
"model": "proc.sanemtas.korespondences.aprite",
"lanes_to_roles": {},
"task_capabilities": {
"Task_RegistretNamejs": [
"cap.namejs.ops"
],
"Task_Send_Dauks": [
"cap.dauks.send"
]
}
},
{
"model": "proc.nosutamas.korespondences.aprite",
"lanes_to_roles": {},
"task_capabilities": {
"Task_Approve": [
"cap.legal.review"
],
"Task_Register_Send": [
"cap.namejs.ops",
"cap.dauks.send"
]
}
},
{
"model": "proc.vss.norm.aktu.saskanosana",
"lanes_to_roles": {},
"task_capabilities": {
"Task_DAUKS": [
"cap.dauks.send"
]
}
}
]
}

28
agents/capabilities.json Normal file
View File

@@ -0,0 +1,28 @@
{
"capabilities": [
{
"id": "cap.namejs.ops",
"name": "Darbs ar DVS Namejs",
"permissions": [
"read",
"write",
"route",
"sign"
]
},
{
"id": "cap.dauks.send",
"name": "Nosūtīšana caur DAUKS",
"permissions": [
"send"
]
},
{
"id": "cap.legal.review",
"name": "Juridiskā pārbaude",
"permissions": [
"review"
]
}
]
}

40
agents/roles.json Normal file
View File

@@ -0,0 +1,40 @@
{
"roles": [
{
"id": "role.lietvedibas.nodala",
"name": "Lietvedības nodaļa"
},
{
"id": "role.kd.atbildigais",
"name": "KD atbildīgais darbinieks"
},
{
"id": "role.vsv",
"name": "Valsts sekretāra vietnieks (VSV)"
},
{
"id": "role.strukturvienibas.vaditajs",
"name": "Struktūrvienības vadītājs"
},
{
"id": "role.dok.sagatavotajs",
"name": "Dokumenta sagatavotājs"
},
{
"id": "role.juridiskais.dep",
"name": "Juridiskais departaments"
},
{
"id": "role.bfd",
"name": "Budžeta un finanšu departaments (BFD)"
},
{
"id": "role.valsts.sekretars",
"name": "Valsts sekretārs"
},
{
"id": "role.ministrs",
"name": "Ministrs"
}
]
}

View File

@@ -0,0 +1,22 @@
{
"a2a": [
{
"message_type": "document.route.request",
"schema": {
"type": "object",
"properties": {
"docId": {
"type": "string"
},
"targetRole": {
"type": "string"
}
},
"required": [
"docId",
"targetRole"
]
}
}
]
}

View File

@@ -0,0 +1,31 @@
{
"mcp_tools": [
{
"id": "tool.namejs.search",
"name": "Namejs: meklēt reģistrācijas kartiņu",
"endpoint": "https://intra.varam.gov.lv/mcp/namejs/search",
"input_schema": {
"type": "object",
"properties": {
"reg_nr": {
"type": "string"
}
},
"required": [
"reg_nr"
]
},
"output_schema": {
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"url": {
"type": "string"
}
}
}
}
]
}

44
manifest.json Normal file
View File

@@ -0,0 +1,44 @@
{
"uapf_version": "0.9-draft",
"version": "1.0.3",
"id": "varam.docproc",
"name": "VARAM dokumentu pārvaldības procesi (BPMN)",
"description": "Trīs BPMN procesi ar DI + aģentu metadatiem UAPF paketē.",
"owner": {
"organization": "VARAM",
"contact": "pasts@varam.gov.lv"
},
"models": {
"bpmn": [
{
"id": "proc.sanemtas.korespondences.aprite",
"path": "models/bpmn/01_sanemtas_korespondences_aprite.bpmn",
"primary": true
},
{
"id": "proc.nosutamas.korespondences.aprite",
"path": "models/bpmn/02_nosutamas_korespondences_aprite.bpmn"
},
{
"id": "proc.vss.norm.aktu.saskanosana",
"path": "models/bpmn/03_vss_norm_aktu_saskanosana.bpmn"
}
],
"dmn": [],
"cmmn": []
},
"agents": {
"roles": "agents/roles.json",
"capabilities": "agents/capabilities.json",
"bindings": "agents/bindings.json"
},
"integration": {
"mcp_tools": "integration/mcp-tools.json",
"a2a_schemas": "integration/a2a-schemas.json"
},
"metadata": {
"version": "metadata/version.json",
"provenance": "metadata/provenance.json",
"compliance": "metadata/compliance.json"
}
}

7
metadata/compliance.json Normal file
View File

@@ -0,0 +1,7 @@
{
"standards": [
"BPMN 2.0",
"UAPF 0.9-draft"
],
"remarks": "Saskaņots ar UAPF draftu"
}

4
metadata/provenance.json Normal file
View File

@@ -0,0 +1,4 @@
{
"source": "VARAM iekšējie noteikumi",
"transform": "BPMN modelēšana un UAPF pakotne"
}

5
metadata/version.json Normal file
View File

@@ -0,0 +1,5 @@
{
"package": "varam-docproc",
"version": "1.0.3",
"released": "2026-02-09"
}

View File

@@ -0,0 +1,62 @@
<?xml version='1.0' encoding='UTF-8'?>
<bpmn:definitions xmlns:bpmn='http://www.omg.org/spec/BPMN/20100524/MODEL'
xmlns:bpmndi='http://www.omg.org/spec/BPMN/20100524/DI'
xmlns:dc='http://www.omg.org/spec/DD/20100524/DC'
xmlns:di='http://www.omg.org/spec/DD/20100524/DI'
id='proc.sanemtas.korespondences.aprite_defs' targetNamespace='http://varam.gov.lv/bpmn/varam-docproc'>
<bpmn:process id='proc.sanemtas.korespondences.aprite' name='Saņemtās korespondences aprite' isExecutable='false'>
<bpmn:startEvent id='Start_Koresp' name='Korespondence saņemta'/>
<bpmn:task id='Task_RegistretNamejs' name='Reģistrēt Namejā'/>
<bpmn:exclusiveGateway id='GW_Atbilde' name='Vai vajag atbildi?'/>
<bpmn:task id='Task_Izpilde' name='Sagatavot atbildi'/>
<bpmn:endEvent id='End_Izpilde' name='Nosūtīts/izpildīts'/>
<bpmn:endEvent id='End_Iepaz' name='Iepazīts'/>
<bpmn:sequenceFlow id='F1' sourceRef='Start_Koresp' targetRef='Task_RegistretNamejs'/>
<bpmn:sequenceFlow id='F2' sourceRef='Task_RegistretNamejs' targetRef='GW_Atbilde'/>
<bpmn:sequenceFlow id='F3' sourceRef='GW_Atbilde' targetRef='Task_Izpilde'/>
<bpmn:sequenceFlow id='F4' sourceRef='Task_Izpilde' targetRef='End_Izpilde'/>
<bpmn:sequenceFlow id='F5' sourceRef='GW_Atbilde' targetRef='End_Iepaz'/>
</bpmn:process>
<bpmndi:BPMNDiagram id='proc.sanemtas.korespondences.aprite_diagram'>
<bpmndi:BPMNPlane id='proc.sanemtas.korespondences.aprite_plane' bpmnElement='proc.sanemtas.korespondences.aprite'>
<bpmndi:BPMNShape id='Start_Koresp_di' bpmnElement='Start_Koresp'>
<dc:Bounds x='120' y='120' width='36' height='36'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='Task_RegistretNamejs_di' bpmnElement='Task_RegistretNamejs'>
<dc:Bounds x='200' y='105' width='120' height='60'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='GW_Atbilde_di' bpmnElement='GW_Atbilde'>
<dc:Bounds x='360' y='120' width='40' height='40'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='Task_Izpilde_di' bpmnElement='Task_Izpilde'>
<dc:Bounds x='440' y='105' width='120' height='60'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='End_Izpilde_di' bpmnElement='End_Izpilde'>
<dc:Bounds x='600' y='120' width='36' height='36'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='End_Iepaz_di' bpmnElement='End_Iepaz'>
<dc:Bounds x='360' y='230' width='36' height='36'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id='F1_di' bpmnElement='F1'>
<di:waypoint x='156' y='138'/>
<di:waypoint x='200' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='F2_di' bpmnElement='F2'>
<di:waypoint x='320' y='138'/>
<di:waypoint x='360' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='F3_di' bpmnElement='F3'>
<di:waypoint x='400' y='138'/>
<di:waypoint x='440' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='F4_di' bpmnElement='F4'>
<di:waypoint x='560' y='138'/>
<di:waypoint x='600' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='F5_di' bpmnElement='F5'>
<di:waypoint x='380' y='160'/>
<di:waypoint x='378' y='230'/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

View File

@@ -0,0 +1,53 @@
<?xml version='1.0' encoding='UTF-8'?>
<bpmn:definitions xmlns:bpmn='http://www.omg.org/spec/BPMN/20100524/MODEL'
xmlns:bpmndi='http://www.omg.org/spec/BPMN/20100524/DI'
xmlns:dc='http://www.omg.org/spec/DD/20100524/DC'
xmlns:di='http://www.omg.org/spec/DD/20100524/DI'
id='proc.nosutamas.korespondences.aprite_defs' targetNamespace='http://varam.gov.lv/bpmn/varam-docproc'>
<bpmn:process id='proc.nosutamas.korespondences.aprite' name='Nosūtāmās korespondences aprite' isExecutable='false'>
<bpmn:startEvent id='Start_Out' name='Uzsākt dokumentu'/>
<bpmn:task id='Task_Prepare' name='Sagatavot dokumentu'/>
<bpmn:task id='Task_Approve' name='Saskaņot/Parakstīt'/>
<bpmn:task id='Task_Register_Send' name='Reģistrēt un nosūtīt (DAUKS/e‑pasts/pasts)'/>
<bpmn:endEvent id='End_Sent' name='Nosūtīts'/>
<bpmn:sequenceFlow id='OF1' sourceRef='Start_Out' targetRef='Task_Prepare'/>
<bpmn:sequenceFlow id='OF2' sourceRef='Task_Prepare' targetRef='Task_Approve'/>
<bpmn:sequenceFlow id='OF3' sourceRef='Task_Approve' targetRef='Task_Register_Send'/>
<bpmn:sequenceFlow id='OF4' sourceRef='Task_Register_Send' targetRef='End_Sent'/>
</bpmn:process>
<bpmndi:BPMNDiagram id='proc.nosutamas.korespondences.aprite_diagram'>
<bpmndi:BPMNPlane id='proc.nosutamas.korespondences.aprite_plane' bpmnElement='proc.nosutamas.korespondences.aprite'>
<bpmndi:BPMNShape id='Start_Out_di' bpmnElement='Start_Out'>
<dc:Bounds x='120' y='120' width='36' height='36'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='Task_Prepare_di' bpmnElement='Task_Prepare'>
<dc:Bounds x='200' y='105' width='140' height='60'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='Task_Approve_di' bpmnElement='Task_Approve'>
<dc:Bounds x='380' y='105' width='140' height='60'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='Task_Register_Send_di' bpmnElement='Task_Register_Send'>
<dc:Bounds x='560' y='105' width='200' height='60'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='End_Sent_di' bpmnElement='End_Sent'>
<dc:Bounds x='800' y='120' width='36' height='36'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id='OF1_di' bpmnElement='OF1'>
<di:waypoint x='156' y='138'/>
<di:waypoint x='200' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='OF2_di' bpmnElement='OF2'>
<di:waypoint x='340' y='138'/>
<di:waypoint x='380' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='OF3_di' bpmnElement='OF3'>
<di:waypoint x='520' y='138'/>
<di:waypoint x='560' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='OF4_di' bpmnElement='OF4'>
<di:waypoint x='760' y='138'/>
<di:waypoint x='800' y='138'/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

View File

@@ -0,0 +1,80 @@
<?xml version='1.0' encoding='UTF-8'?>
<bpmn:definitions xmlns:bpmn='http://www.omg.org/spec/BPMN/20100524/MODEL'
xmlns:bpmndi='http://www.omg.org/spec/BPMN/20100524/DI'
xmlns:dc='http://www.omg.org/spec/DD/20100524/DC'
xmlns:di='http://www.omg.org/spec/DD/20100524/DI'
id='proc.vss.norm.aktu.saskanosana_defs' targetNamespace='http://varam.gov.lv/bpmn/varam-docproc'>
<bpmn:process id='proc.vss.norm.aktu.saskanosana' name='VSS normatīvo aktu saskaņošana' isExecutable='false'>
<bpmn:startEvent id='Start_VSS' name='Saņemts VSS'/>
<bpmn:task id='Task_KD' name='KD sadale'/>
<bpmn:task id='Task_SV_Review' name='SV izvērtē'/>
<bpmn:exclusiveGateway id='GW_Obs' name='Iebildumi?'/>
<bpmn:task id='Task_EmailAgree' name='Saskaņojums e‑pastā'/>
<bpmn:task id='Task_VSV_Sign' name='VSV paraksts'/>
<bpmn:task id='Task_DAUKS' name='Nosūtīt DAUKS'/>
<bpmn:endEvent id='End_VSS' name='Pabeigts'/>
<bpmn:sequenceFlow id='VF1' sourceRef='Start_VSS' targetRef='Task_KD'/>
<bpmn:sequenceFlow id='VF2' sourceRef='Task_KD' targetRef='Task_SV_Review'/>
<bpmn:sequenceFlow id='VF3' sourceRef='Task_SV_Review' targetRef='GW_Obs'/>
<bpmn:sequenceFlow id='VF4' sourceRef='GW_Obs' targetRef='Task_EmailAgree'/>
<bpmn:sequenceFlow id='VF5' sourceRef='Task_EmailAgree' targetRef='Task_VSV_Sign'/>
<bpmn:sequenceFlow id='VF6' sourceRef='Task_VSV_Sign' targetRef='Task_DAUKS'/>
<bpmn:sequenceFlow id='VF7' sourceRef='Task_DAUKS' targetRef='End_VSS'/>
</bpmn:process>
<bpmndi:BPMNDiagram id='proc.vss.norm.aktu.saskanosana_diagram'>
<bpmndi:BPMNPlane id='proc.vss.norm.aktu.saskanosana_plane' bpmnElement='proc.vss.norm.aktu.saskanosana'>
<bpmndi:BPMNShape id='Start_VSS_di' bpmnElement='Start_VSS'>
<dc:Bounds x='120' y='120' width='36' height='36'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='Task_KD_di' bpmnElement='Task_KD'>
<dc:Bounds x='200' y='105' width='120' height='60'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='Task_SV_Review_di' bpmnElement='Task_SV_Review'>
<dc:Bounds x='360' y='105' width='120' height='60'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='GW_Obs_di' bpmnElement='GW_Obs'>
<dc:Bounds x='520' y='120' width='40' height='40'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='Task_EmailAgree_di' bpmnElement='Task_EmailAgree'>
<dc:Bounds x='600' y='105' width='160' height='60'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='Task_VSV_Sign_di' bpmnElement='Task_VSV_Sign'>
<dc:Bounds x='800' y='105' width='140' height='60'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='Task_DAUKS_di' bpmnElement='Task_DAUKS'>
<dc:Bounds x='980' y='105' width='140' height='60'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id='End_VSS_di' bpmnElement='End_VSS'>
<dc:Bounds x='1140' y='120' width='36' height='36'/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id='VF1_di' bpmnElement='VF1'>
<di:waypoint x='156' y='138'/>
<di:waypoint x='200' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='VF2_di' bpmnElement='VF2'>
<di:waypoint x='320' y='138'/>
<di:waypoint x='360' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='VF3_di' bpmnElement='VF3'>
<di:waypoint x='480' y='138'/>
<di:waypoint x='520' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='VF4_di' bpmnElement='VF4'>
<di:waypoint x='560' y='138'/>
<di:waypoint x='600' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='VF5_di' bpmnElement='VF5'>
<di:waypoint x='760' y='138'/>
<di:waypoint x='800' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='VF6_di' bpmnElement='VF6'>
<di:waypoint x='940' y='138'/>
<di:waypoint x='980' y='138'/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id='VF7_di' bpmnElement='VF7'>
<di:waypoint x='1120' y='138'/>
<di:waypoint x='1140' y='138'/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>