1
0

FG3 build-out: six FG3-x sub-process packages + FG3-1 executable

Adds the six FG3 sub-process packages (processes/fg3-1 .. fg3-6) and wires
them into the FG3 (L2) package via `includes`; FG3 version 0.1.0 -> 0.2.0.

FG3-1 (Rēķina/kredītrēķina saņemšana par precēm/pakalpojumiem) is built out
as an executable L4 package:
- bpmn/rekina-sanemsana.bpmn  - 3-lane process (Nodarbinātais / VPC / Iestāde)
- dmn/rekina-parbaude.dmn     - FIRST hit-policy routing decision table
- resources/                 - roles, agent and mappings binding every user
                               task and the decision to a target
- metadata/                  - ownership, lifecycle, policies

FG3-2..FG3-6 are draft composition placeholders (L4) pending executable
build-out.

Validated against the UAPF 2.2.0 schemas (manifest, ownership, lifecycle,
policies, resource-mapping, enterprise index): all includes resolve, no
duplicated executable artifacts, BPMN/DMN well-formed, and all resource
mapping references resolve to real BPMN/DMN element ids.
This commit is contained in:
2026-05-19 18:34:59 +00:00
parent 14d03dd929
commit 81d32e81d5
33 changed files with 732 additions and 16 deletions

64
processes/fg3-1/README.md Normal file
View File

@@ -0,0 +1,64 @@
# FG3-1 — Rēķina/kredītrēķina saņemšana par precēm/pakalpojumiem
Level 4 atomic executable process for the receipt and processing of supplier
invoices and credit invoices for goods and services — the FG3 demonstrator
taken to executable depth.
- **UAPF level:** L4 (atomic executable)
- **Package id:** `vk.gramatvediba.fg3-1`
- **Included by:** `processes/fg3` (function group FG3).
- **Source:** Valsts Kase *Grāmatvedības uzskaites procesu apraksts* — FG3
schema and process register.
## Process
`bpmn/rekina-sanemsana.bpmn` (`Process_RekinaSanemsana`) transcribes the
invoice-receipt flow across three lanes mapped from the source RACI columns:
- **Nodarbinātais** — invoice arrives (e-invoice via e-address, or paper).
- **VPC** — registration in the DVS, formal checking, contract/PO matching,
routing, posting and payment-order preparation; manual review where needed.
- **Iestāde** — substantive approval by the responsible officer.
Flow: register in DVS → formal check → match to contract/PO → routing
decision → substantive approval → post → prepare payment order. Two
terminating outcomes: *posted and queued for payment*, or *returned to the
supplier*.
## Decision
`dmn/rekina-parbaude.dmn` (`Decision_RekinaMarsrutesana`) is a `FIRST`
hit-policy decision table that sets the routing variable `marsruts` from three
inputs:
| Input | Values |
|-------|--------|
| `formalaParbaude` | `atbilst`, `neatbilst` |
| `ligumaSasaiste` | `pilna`, `dalena`, `nav` |
| `dokumentaTips` | `rekins`, `kreditrekins` |
Outcomes: `return` (failed formal check), `manual-review` (no/partial contract
match, or any credit invoice), `process` (formally valid, full match, plain
invoice). The `Task_NoteiktMarsrutu` business-rule task evaluates it.
## Resources
`resources/mappings.yaml` binds every BPMN user task and the DMN decision to a
target in `resources/roles.yaml` / `resources/agents.yaml`. Human steps are
`manual`; the AI agent `agent.rekinu-asistents` is bound `assisted` to the
formal check, contract matching and the routing decision — it suggests, the
accountant decides. No step is `autonomous`.
## Transcription note
The process structure, lanes, systems and SLAs are transcribed from the
published FG3-1 schema and register. Step identifiers here use stable BPMN/DMN
element ids; reconciliation of these against the source register's `process
nr.` numbering is a tracked follow-up and any schema/register discrepancy is
to be recorded rather than silently resolved (see `docs/conventions.md`).
## Status
Draft. The package is structurally complete and validates against the UAPF
2.2.0 schemas; lifecycle status advances to `review` once the source-numbering
reconciliation is signed off.

View File

@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
id="Defs_FG3_1_RekinaSanemsana"
targetNamespace="https://uapf.dev/vk-gramatvediba/fg3-1">
<bpmn:process id="Process_RekinaSanemsana"
name="Rēķina/kredītrēķina saņemšana par precēm/pakalpojumiem"
isExecutable="true">
<bpmn:laneSet id="LaneSet_FG3_1">
<bpmn:lane id="Lane_Nodarbinatais" name="Nodarbinātais">
<bpmn:flowNodeRef>Start_RekinsSanemts</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_VPC" name="VPC (Vienotais pakalpojumu centrs)">
<bpmn:flowNodeRef>Task_RegistreDVS</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_FormalaParbaude</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_SasaisteArLigumu</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_NoteiktMarsrutu</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_Marsruts</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_ManualaParbaude</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_AtgrieztPiegadatajam</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_Gramatosana</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_NodotApmaksai</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_Iegramatots</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_Atgriezts</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_Iestade" name="Iestāde (atbildīgā amatpersona)">
<bpmn:flowNodeRef>Task_SaturiskaApstiprinasana</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_RekinsSanemts" name="Rēķins/kredītrēķins saņemts">
<bpmn:documentation>Rēķins saņemts elektroniski (e-rēķins EN 16931 caur e-adresi) vai papīra formā. Sistēma: e-adrese, DVS.</bpmn:documentation>
<bpmn:outgoing>F1</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Task_RegistreDVS" name="Reģistrēt rēķinu DVS">
<bpmn:documentation>Rēķinu reģistrē dokumentu vadības sistēmā, piešķir reģistrācijas numuru un fiksē saņemšanas datumu. Sistēma: DVS. SLA: 1 darba diena no saņemšanas.</bpmn:documentation>
<bpmn:incoming>F1</bpmn:incoming>
<bpmn:outgoing>F2</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_FormalaParbaude" name="Veikt formālo pārbaudi">
<bpmn:documentation>Pārbauda obligātos rekvizītus (EN 16931), piegādātāja identificējamību un to, vai rēķins nav dublēts. Rezultāts: mainīgais formalaParbaude = "atbilst" | "neatbilst". Sistēma: DVS, grāmatvedības informācijas sistēma.</bpmn:documentation>
<bpmn:incoming>F2</bpmn:incoming>
<bpmn:outgoing>F3</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_SasaisteArLigumu" name="Sasaistīt ar iepirkuma līgumu/pasūtījumu">
<bpmn:documentation>Rēķinu sasaista ar iepirkuma līgumu vai pasūtījumu un veic trīspusējo salīdzināšanu (līgums – pasūtījums – rēķins). Rezultāts: mainīgais ligumaSasaiste = "pilna" | "dalena" | "nav".</bpmn:documentation>
<bpmn:incoming>F3</bpmn:incoming>
<bpmn:outgoing>F4</bpmn:outgoing>
</bpmn:userTask>
<bpmn:businessRuleTask id="Task_NoteiktMarsrutu" name="Noteikt rēķina maršrutu">
<bpmn:documentation>Automatizēti izvērtē rēķina apstrādes maršrutu, izpildot lēmumu Decision_RekinaMarsrutesana (dmn/rekina-parbaude.dmn). Ievaddati: formalaParbaude, ligumaSasaiste, dokumentaTips. Rezultāts: mainīgais marsruts.</bpmn:documentation>
<bpmn:incoming>F4</bpmn:incoming>
<bpmn:outgoing>F5</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:exclusiveGateway id="Gateway_Marsruts" name="Maršruts?" default="F6">
<bpmn:incoming>F5</bpmn:incoming>
<bpmn:outgoing>F6</bpmn:outgoing>
<bpmn:outgoing>F7</bpmn:outgoing>
<bpmn:outgoing>F8</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:userTask id="Task_ManualaParbaude" name="Veikt manuālu izvērtēšanu">
<bpmn:documentation>Vecākais grāmatvedis izvērtē rēķinu, kuram trūkst pilnas līguma sasaistes vai kurš ir kredītrēķins, un sagatavo to saturiskajai apstiprināšanai.</bpmn:documentation>
<bpmn:incoming>F7</bpmn:incoming>
<bpmn:outgoing>F9</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_AtgrieztPiegadatajam" name="Atgriezt rēķinu piegādātājam precizēšanai">
<bpmn:documentation>Rēķins, kas neiztur formālo pārbaudi, tiek atgriezts piegādātājam ar norādi par konstatētajām neatbilstībām. Sistēma: e-adrese, DVS.</bpmn:documentation>
<bpmn:incoming>F8</bpmn:incoming>
<bpmn:outgoing>F10</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_SaturiskaApstiprinasana" name="Saturiski apstiprināt rēķinu">
<bpmn:documentation>Iestādes atbildīgā amatpersona apliecina, ka preces/pakalpojumi ir saņemti atbilstoši līgumam, un apstiprina rēķinu apmaksai. SLA: 5 darba dienas.</bpmn:documentation>
<bpmn:incoming>F6</bpmn:incoming>
<bpmn:incoming>F9</bpmn:incoming>
<bpmn:outgoing>F11</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_Gramatosana" name="Iegrāmatot rēķinu">
<bpmn:documentation>Apstiprināto rēķinu iegrāmato grāmatvedības informācijas sistēmā atbilstoši kontu plānam un izdevumu klasifikācijai. Sistēma: grāmatvedības informācijas sistēma.</bpmn:documentation>
<bpmn:incoming>F11</bpmn:incoming>
<bpmn:outgoing>F12</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_NodotApmaksai" name="Sagatavot maksājuma uzdevuma priekšlikumu">
<bpmn:documentation>Iegrāmatoto rēķinu nodod apmaksas plānošanai, sagatavojot maksājuma uzdevuma priekšlikumu atbilstoši samaksas termiņam.</bpmn:documentation>
<bpmn:incoming>F12</bpmn:incoming>
<bpmn:outgoing>F13</bpmn:outgoing>
</bpmn:userTask>
<bpmn:endEvent id="End_Iegramatots" name="Rēķins iegrāmatots un nodots apmaksai">
<bpmn:incoming>F13</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="End_Atgriezts" name="Rēķins atgriezts piegādātājam">
<bpmn:incoming>F10</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="F1" sourceRef="Start_RekinsSanemts" targetRef="Task_RegistreDVS"/>
<bpmn:sequenceFlow id="F2" sourceRef="Task_RegistreDVS" targetRef="Task_FormalaParbaude"/>
<bpmn:sequenceFlow id="F3" sourceRef="Task_FormalaParbaude" targetRef="Task_SasaisteArLigumu"/>
<bpmn:sequenceFlow id="F4" sourceRef="Task_SasaisteArLigumu" targetRef="Task_NoteiktMarsrutu"/>
<bpmn:sequenceFlow id="F5" sourceRef="Task_NoteiktMarsrutu" targetRef="Gateway_Marsruts"/>
<bpmn:sequenceFlow id="F6" name="process" sourceRef="Gateway_Marsruts" targetRef="Task_SaturiskaApstiprinasana"/>
<bpmn:sequenceFlow id="F7" name="manual-review" sourceRef="Gateway_Marsruts" targetRef="Task_ManualaParbaude">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">marsruts = "manual-review"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="F8" name="return" sourceRef="Gateway_Marsruts" targetRef="Task_AtgrieztPiegadatajam">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">marsruts = "return"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="F9" sourceRef="Task_ManualaParbaude" targetRef="Task_SaturiskaApstiprinasana"/>
<bpmn:sequenceFlow id="F10" sourceRef="Task_AtgrieztPiegadatajam" targetRef="End_Atgriezts"/>
<bpmn:sequenceFlow id="F11" sourceRef="Task_SaturiskaApstiprinasana" targetRef="Task_Gramatosana"/>
<bpmn:sequenceFlow id="F12" sourceRef="Task_Gramatosana" targetRef="Task_NodotApmaksai"/>
<bpmn:sequenceFlow id="F13" sourceRef="Task_NodotApmaksai" targetRef="End_Iegramatots"/>
</bpmn:process>
</bpmn:definitions>

View File

@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<dmn:definitions xmlns:dmn="https://www.omg.org/spec/DMN/20191111/MODEL/"
id="Defs_FG3_1_RekinaParbaude"
name="RekinaParbaude"
namespace="https://uapf.dev/vk-gramatvediba/fg3-1">
<dmn:inputData id="Input_FormalaParbaude" name="formalaParbaude"/>
<dmn:inputData id="Input_LigumaSasaiste" name="ligumaSasaiste"/>
<dmn:inputData id="Input_DokumentaTips" name="dokumentaTips"/>
<dmn:decision id="Decision_RekinaMarsrutesana" name="Rēķina maršrutēšana">
<dmn:description>Nosaka saņemtā rēķina/kredītrēķina apstrādes maršrutu, pamatojoties uz formālās pārbaudes rezultātu, līguma sasaisti un dokumenta tipu.</dmn:description>
<dmn:informationRequirement id="IR_Formala">
<dmn:requiredInput href="#Input_FormalaParbaude"/>
</dmn:informationRequirement>
<dmn:informationRequirement id="IR_Sasaiste">
<dmn:requiredInput href="#Input_LigumaSasaiste"/>
</dmn:informationRequirement>
<dmn:informationRequirement id="IR_Tips">
<dmn:requiredInput href="#Input_DokumentaTips"/>
</dmn:informationRequirement>
<dmn:decisionTable id="DT_RekinaMarsrutesana" hitPolicy="FIRST">
<dmn:input id="In_Formala" label="Formālā pārbaude">
<dmn:inputExpression id="InExpr_Formala" typeRef="string">
<dmn:text>formalaParbaude</dmn:text>
</dmn:inputExpression>
<dmn:inputValues id="InVals_Formala">
<dmn:text>"atbilst","neatbilst"</dmn:text>
</dmn:inputValues>
</dmn:input>
<dmn:input id="In_Sasaiste" label="Līguma sasaiste">
<dmn:inputExpression id="InExpr_Sasaiste" typeRef="string">
<dmn:text>ligumaSasaiste</dmn:text>
</dmn:inputExpression>
<dmn:inputValues id="InVals_Sasaiste">
<dmn:text>"pilna","dalena","nav"</dmn:text>
</dmn:inputValues>
</dmn:input>
<dmn:input id="In_Tips" label="Dokumenta tips">
<dmn:inputExpression id="InExpr_Tips" typeRef="string">
<dmn:text>dokumentaTips</dmn:text>
</dmn:inputExpression>
<dmn:inputValues id="InVals_Tips">
<dmn:text>"rekins","kreditrekins"</dmn:text>
</dmn:inputValues>
</dmn:input>
<dmn:output id="Out_Marsruts" label="Maršruts" name="marsruts" typeRef="string">
<dmn:outputValues id="OutVals_Marsruts">
<dmn:text>"process","manual-review","return"</dmn:text>
</dmn:outputValues>
</dmn:output>
<dmn:rule id="Rule_1">
<dmn:description>Neiztur formālo pārbaudi — atgriež piegādātājam.</dmn:description>
<dmn:inputEntry id="R1_Formala"><dmn:text>"neatbilst"</dmn:text></dmn:inputEntry>
<dmn:inputEntry id="R1_Sasaiste"><dmn:text>-</dmn:text></dmn:inputEntry>
<dmn:inputEntry id="R1_Tips"><dmn:text>-</dmn:text></dmn:inputEntry>
<dmn:outputEntry id="R1_Out"><dmn:text>"return"</dmn:text></dmn:outputEntry>
</dmn:rule>
<dmn:rule id="Rule_2">
<dmn:description>Nav līguma sasaistes — manuāla izvērtēšana.</dmn:description>
<dmn:inputEntry id="R2_Formala"><dmn:text>"atbilst"</dmn:text></dmn:inputEntry>
<dmn:inputEntry id="R2_Sasaiste"><dmn:text>"nav"</dmn:text></dmn:inputEntry>
<dmn:inputEntry id="R2_Tips"><dmn:text>-</dmn:text></dmn:inputEntry>
<dmn:outputEntry id="R2_Out"><dmn:text>"manual-review"</dmn:text></dmn:outputEntry>
</dmn:rule>
<dmn:rule id="Rule_3">
<dmn:description>Daļēja līguma sasaiste — manuāla izvērtēšana.</dmn:description>
<dmn:inputEntry id="R3_Formala"><dmn:text>"atbilst"</dmn:text></dmn:inputEntry>
<dmn:inputEntry id="R3_Sasaiste"><dmn:text>"dalena"</dmn:text></dmn:inputEntry>
<dmn:inputEntry id="R3_Tips"><dmn:text>-</dmn:text></dmn:inputEntry>
<dmn:outputEntry id="R3_Out"><dmn:text>"manual-review"</dmn:text></dmn:outputEntry>
</dmn:rule>
<dmn:rule id="Rule_4">
<dmn:description>Kredītrēķins vienmēr tiek izvērtēts manuāli.</dmn:description>
<dmn:inputEntry id="R4_Formala"><dmn:text>"atbilst"</dmn:text></dmn:inputEntry>
<dmn:inputEntry id="R4_Sasaiste"><dmn:text>-</dmn:text></dmn:inputEntry>
<dmn:inputEntry id="R4_Tips"><dmn:text>"kreditrekins"</dmn:text></dmn:inputEntry>
<dmn:outputEntry id="R4_Out"><dmn:text>"manual-review"</dmn:text></dmn:outputEntry>
</dmn:rule>
<dmn:rule id="Rule_5">
<dmn:description>Formāli atbilstošs rēķins ar pilnu līguma sasaisti — standarta apstrāde.</dmn:description>
<dmn:inputEntry id="R5_Formala"><dmn:text>"atbilst"</dmn:text></dmn:inputEntry>
<dmn:inputEntry id="R5_Sasaiste"><dmn:text>"pilna"</dmn:text></dmn:inputEntry>
<dmn:inputEntry id="R5_Tips"><dmn:text>"rekins"</dmn:text></dmn:inputEntry>
<dmn:outputEntry id="R5_Out"><dmn:text>"process"</dmn:text></dmn:outputEntry>
</dmn:rule>
</dmn:decisionTable>
</dmn:decision>
</dmn:definitions>

View File

@@ -0,0 +1,9 @@
kind: uapf.metadata.lifecycle
status: draft
created: "2026-05-19T00:00:00Z"
lastModified: "2026-05-19T00:00:00Z"
changeHistory:
- version: 0.1.0
date: "2026-05-19"
summary: "Initial executable build — BPMN process, DMN routing decision and resource mappings."
author: vpc.process-office

View File

@@ -0,0 +1,8 @@
kind: uapf.metadata.ownership
owners:
- type: organization
id: vpc
name: Vienotais pakalpojumu centrs (Valsts Kase)
role: owner
approvers:
- vpc.process-office

View File

@@ -0,0 +1,18 @@
kind: uapf.policies
classification:
level: internal
dataCategories:
- financial-records
- supplier-data
execution:
requiresApproval: false
auditRequired: true
allowedEnvironments:
- development
- staging
- production
delegation:
allowAgentDelegation: true
maxDelegationDepth: 2
trustedAgents:
- agent.rekinu-asistents

View File

@@ -0,0 +1,9 @@
kind: uapf.resources.agents
agents:
- id: agent.rekinu-asistents
name: Rēķinu apstrādes asistents
type: ai_agent
capabilities:
- capability.document.extract
- capability.policy.lookup
- capability.decision.assist

View File

@@ -0,0 +1,83 @@
kind: uapf.resources.mapping
targets:
- id: role.gramatvedis
type: human_role
name: Grāmatvedis (VPC)
- id: role.vec-gramatvedis
type: human_role
name: Vecākais grāmatvedis (VPC)
- id: role.atbildigais
type: human_role
name: Atbildīgā amatpersona (iestāde)
- id: agent.rekinu-asistents
type: ai_agent
name: Rēķinu apstrādes asistents
capabilities:
- capability.document.extract
- capability.policy.lookup
- capability.decision.assist
bindings:
- source:
type: bpmn.userTask
ref: Task_RegistreDVS
targetId: role.gramatvedis
mode: manual
notes: "Grāmatvedis reģistrē rēķinu DVS un piešķir reģistrācijas numuru."
- source:
type: bpmn.userTask
ref: Task_FormalaParbaude
targetId: agent.rekinu-asistents
mode: assisted
notes: "Asistents izgūst rekvizītus un norāda iespējamās neatbilstības; grāmatvedis apstiprina rezultātu."
- source:
type: bpmn.userTask
ref: Task_SasaisteArLigumu
targetId: agent.rekinu-asistents
mode: assisted
notes: "Asistents piedāvā līguma/pasūtījuma kandidātus trīspusējai salīdzināšanai; grāmatvedis apstiprina sasaisti."
- source:
type: dmn.decision
ref: Decision_RekinaMarsrutesana
targetId: agent.rekinu-asistents
mode: assisted
notes: "Asistents izpilda maršrutēšanas lēmuma tabulu un sniedz maršruta priekšlikumu ar pamatojumu."
- source:
type: bpmn.userTask
ref: Task_ManualaParbaude
targetId: role.vec-gramatvedis
mode: manual
notes: "Vecākais grāmatvedis izvērtē rēķinu, kuram trūkst pilnas līguma sasaistes vai kurš ir kredītrēķins."
- source:
type: bpmn.userTask
ref: Task_AtgrieztPiegadatajam
targetId: role.gramatvedis
mode: manual
notes: "Grāmatvedis sagatavo un nosūta rēķina atgriešanu piegādātājam ar neatbilstību norādi."
- source:
type: bpmn.userTask
ref: Task_SaturiskaApstiprinasana
targetId: role.atbildigais
mode: manual
notes: "Iestādes atbildīgā amatpersona saturiski apstiprina rēķinu."
- source:
type: bpmn.userTask
ref: Task_Gramatosana
targetId: role.gramatvedis
mode: manual
notes: "Grāmatvedis iegrāmato apstiprināto rēķinu grāmatvedības informācijas sistēmā."
- source:
type: bpmn.userTask
ref: Task_NodotApmaksai
targetId: role.gramatvedis
mode: manual
notes: "Grāmatvedis sagatavo maksājuma uzdevuma priekšlikumu."

View File

@@ -0,0 +1,11 @@
kind: uapf.resources.roles
roles:
- id: role.gramatvedis
name: Grāmatvedis (VPC)
description: Reģistrē rēķinu, veic formālo pārbaudi un sasaisti ar līgumu, iegrāmato rēķinu un sagatavo maksājuma uzdevuma priekšlikumu.
- id: role.vec-gramatvedis
name: Vecākais grāmatvedis (VPC)
description: Manuāli izvērtē rēķinus, kuriem trūkst pilnas līguma sasaistes vai kuri ir kredītrēķini.
- id: role.atbildigais
name: Atbildīgā amatpersona (iestāde)
description: Saturiski apstiprina rēķinu, apliecinot preču/pakalpojumu saņemšanu atbilstoši līgumam.

61
processes/fg3-1/uapf.yaml Normal file
View File

@@ -0,0 +1,61 @@
kind: uapf.package
id: vk.gramatvediba.fg3-1
name: "FG3-1 — Rēķina/kredītrēķina saņemšana par precēm/pakalpojumiem"
description: "Level 4 atomic executable process: receipt, registration, formal and substantive checking, contract/PO matching and posting of supplier invoices and credit invoices for goods and services. The FG3 demonstrator taken to executable depth (BPMN + DMN + resource mappings)."
level: 4
version: 0.1.0
includes: []
cornerstones:
bpmn: true
dmn: true
cmmn: false
resources: true
paths:
bpmn: bpmn
dmn: dmn
cmmn: cmmn
resources: resources
metadata: metadata
exposure:
mcp:
enabled: true
runnable: true
exposedEntrypoints:
- process: Process_RekinaSanemsana
tool: vk.fg3-1.run
- decision: Decision_RekinaMarsrutesana
tool: vk.fg3-1.evaluate-routing
exposedArtifacts:
- manifest
- bpmn
- dmn
inputs:
- rekins
- piegadatajs
- iepirkuma-ligums
outputs:
- iegramatots-rekins
- maksajuma-uzdevuma-priekslikums
artifacts:
bpmn:
- path: bpmn/rekina-sanemsana.bpmn
role: primary-process
description: "Invoice/credit-invoice receipt, checking, contract matching and posting."
dmn:
- path: dmn/rekina-parbaude.dmn
role: routing-decision
description: "Routes the invoice to posting, manual review or return to the supplier."
resources:
- path: resources/roles.yaml
role: roles
description: "Human roles participating in the process."
- path: resources/agents.yaml
role: agents
description: "AI agent declared for assisted steps."
- path: resources/mappings.yaml
role: resource-mapping
description: "Bindings of BPMN tasks and the DMN decision to targets."
owners:
- type: team
id: vpc
lifecycle: draft

16
processes/fg3-2/README.md Normal file
View File

@@ -0,0 +1,16 @@
# FG3-2 — Iepirkuma līguma darbības izbeigšana
Termination of a procurement contract: recording contract closure, final settlement of outstanding obligations and release of the related commitment.
- **UAPF level:** L4 (atomic sub-process)
- **Package id:** `vk.gramatvediba.fg3-2`
- **Source:** Valsts Kase *Grāmatvedības uzskaites procesu apraksts* — FG3
schema and process register.
- **Included by:** `processes/fg3` (function group FG3).
## Status
Draft composition placeholder. The sub-process is identified and wired into
FG3 via `includes`; its executable build (BPMN + DMN + resource mappings)
follows in a later step. FG3-1 is the sub-process taken to executable depth in
this proof-of-concept.

View File

@@ -0,0 +1,4 @@
kind: uapf.metadata.lifecycle
status: draft
created: "2026-05-19T00:00:00Z"
lastModified: "2026-05-19T00:00:00Z"

View File

@@ -0,0 +1,8 @@
kind: uapf.metadata.ownership
owners:
- type: organization
id: vpc
name: Vienotais pakalpojumu centrs (Valsts Kase)
role: owner
approvers:
- vpc.process-office

16
processes/fg3-2/uapf.yaml Normal file
View File

@@ -0,0 +1,16 @@
kind: uapf.package
id: vk.gramatvediba.fg3-2
name: "FG3-2 — Iepirkuma līguma darbības izbeigšana"
description: "Termination of a procurement contract: recording contract closure, final settlement of outstanding obligations and release of the related commitment."
level: 4
version: 0.1.0
includes: []
cornerstones:
bpmn: false
dmn: false
cmmn: false
resources: false
owners:
- type: team
id: vpc
lifecycle: draft

16
processes/fg3-3/README.md Normal file
View File

@@ -0,0 +1,16 @@
# FG3-3 — Klienta datu pārvaldība
Counterparty master-data management for liabilities accounting: registration and maintenance of the supplier and client records used by the FG3 processes.
- **UAPF level:** L4 (atomic sub-process)
- **Package id:** `vk.gramatvediba.fg3-3`
- **Source:** Valsts Kase *Grāmatvedības uzskaites procesu apraksts* — FG3
schema and process register.
- **Included by:** `processes/fg3` (function group FG3).
## Status
Draft composition placeholder. The sub-process is identified and wired into
FG3 via `includes`; its executable build (BPMN + DMN + resource mappings)
follows in a later step. FG3-1 is the sub-process taken to executable depth in
this proof-of-concept.

View File

@@ -0,0 +1,4 @@
kind: uapf.metadata.lifecycle
status: draft
created: "2026-05-19T00:00:00Z"
lastModified: "2026-05-19T00:00:00Z"

View File

@@ -0,0 +1,8 @@
kind: uapf.metadata.ownership
owners:
- type: organization
id: vpc
name: Vienotais pakalpojumu centrs (Valsts Kase)
role: owner
approvers:
- vpc.process-office

16
processes/fg3-3/uapf.yaml Normal file
View File

@@ -0,0 +1,16 @@
kind: uapf.package
id: vk.gramatvediba.fg3-3
name: "FG3-3 — Klienta datu pārvaldība"
description: "Counterparty master-data management for liabilities accounting: registration and maintenance of the supplier and client records used by the FG3 processes."
level: 4
version: 0.1.0
includes: []
cornerstones:
bpmn: false
dmn: false
cmmn: false
resources: false
owners:
- type: team
id: vpc
lifecycle: draft

16
processes/fg3-4/README.md Normal file
View File

@@ -0,0 +1,16 @@
# FG3-4 — Saimnieciskā norēķina veikšana
Economic settlement: handling of advances, petty-cash and other economic settlements with employees and counterparties.
- **UAPF level:** L4 (atomic sub-process)
- **Package id:** `vk.gramatvediba.fg3-4`
- **Source:** Valsts Kase *Grāmatvedības uzskaites procesu apraksts* — FG3
schema and process register.
- **Included by:** `processes/fg3` (function group FG3).
## Status
Draft composition placeholder. The sub-process is identified and wired into
FG3 via `includes`; its executable build (BPMN + DMN + resource mappings)
follows in a later step. FG3-1 is the sub-process taken to executable depth in
this proof-of-concept.

View File

@@ -0,0 +1,4 @@
kind: uapf.metadata.lifecycle
status: draft
created: "2026-05-19T00:00:00Z"
lastModified: "2026-05-19T00:00:00Z"

View File

@@ -0,0 +1,8 @@
kind: uapf.metadata.ownership
owners:
- type: organization
id: vpc
name: Vienotais pakalpojumu centrs (Valsts Kase)
role: owner
approvers:
- vpc.process-office

16
processes/fg3-4/uapf.yaml Normal file
View File

@@ -0,0 +1,16 @@
kind: uapf.package
id: vk.gramatvediba.fg3-4
name: "FG3-4 — Saimnieciskā norēķina veikšana"
description: "Economic settlement: handling of advances, petty-cash and other economic settlements with employees and counterparties."
level: 4
version: 0.1.0
includes: []
cornerstones:
bpmn: false
dmn: false
cmmn: false
resources: false
owners:
- type: team
id: vpc
lifecycle: draft

16
processes/fg3-5/README.md Normal file
View File

@@ -0,0 +1,16 @@
# FG3-5 — Komandējuma norēķina veikšana
Business-trip settlement: processing of travel advances and post-trip expense settlements against approved travel orders.
- **UAPF level:** L4 (atomic sub-process)
- **Package id:** `vk.gramatvediba.fg3-5`
- **Source:** Valsts Kase *Grāmatvedības uzskaites procesu apraksts* — FG3
schema and process register.
- **Included by:** `processes/fg3` (function group FG3).
## Status
Draft composition placeholder. The sub-process is identified and wired into
FG3 via `includes`; its executable build (BPMN + DMN + resource mappings)
follows in a later step. FG3-1 is the sub-process taken to executable depth in
this proof-of-concept.

View File

@@ -0,0 +1,4 @@
kind: uapf.metadata.lifecycle
status: draft
created: "2026-05-19T00:00:00Z"
lastModified: "2026-05-19T00:00:00Z"

View File

@@ -0,0 +1,8 @@
kind: uapf.metadata.ownership
owners:
- type: organization
id: vpc
name: Vienotais pakalpojumu centrs (Valsts Kase)
role: owner
approvers:
- vpc.process-office

16
processes/fg3-5/uapf.yaml Normal file
View File

@@ -0,0 +1,16 @@
kind: uapf.package
id: vk.gramatvediba.fg3-5
name: "FG3-5 — Komandējuma norēķina veikšana"
description: "Business-trip settlement: processing of travel advances and post-trip expense settlements against approved travel orders."
level: 4
version: 0.1.0
includes: []
cornerstones:
bpmn: false
dmn: false
cmmn: false
resources: false
owners:
- type: team
id: vpc
lifecycle: draft

16
processes/fg3-6/README.md Normal file
View File

@@ -0,0 +1,16 @@
# FG3-6 — Kopsavilkuma grāmatošana
Summary posting: periodic aggregation and posting of the liability and expense entries arising from the FG3 sub-processes.
- **UAPF level:** L4 (atomic sub-process)
- **Package id:** `vk.gramatvediba.fg3-6`
- **Source:** Valsts Kase *Grāmatvedības uzskaites procesu apraksts* — FG3
schema and process register.
- **Included by:** `processes/fg3` (function group FG3).
## Status
Draft composition placeholder. The sub-process is identified and wired into
FG3 via `includes`; its executable build (BPMN + DMN + resource mappings)
follows in a later step. FG3-1 is the sub-process taken to executable depth in
this proof-of-concept.

View File

@@ -0,0 +1,4 @@
kind: uapf.metadata.lifecycle
status: draft
created: "2026-05-19T00:00:00Z"
lastModified: "2026-05-19T00:00:00Z"

View File

@@ -0,0 +1,8 @@
kind: uapf.metadata.ownership
owners:
- type: organization
id: vpc
name: Vienotais pakalpojumu centrs (Valsts Kase)
role: owner
approvers:
- vpc.process-office

16
processes/fg3-6/uapf.yaml Normal file
View File

@@ -0,0 +1,16 @@
kind: uapf.package
id: vk.gramatvediba.fg3-6
name: "FG3-6 — Kopsavilkuma grāmatošana"
description: "Summary posting: periodic aggregation and posting of the liability and expense entries arising from the FG3 sub-processes."
level: 4
version: 0.1.0
includes: []
cornerstones:
bpmn: false
dmn: false
cmmn: false
resources: false
owners:
- type: team
id: vpc
lifecycle: draft

View File

@@ -8,15 +8,22 @@ Function group 3 - accounting for liabilities and expenses: supplier data and co
## Status
Composition placeholder. FG3 is the function group taken to executable
depth in this proof-of-concept. Its six sub-process packages and the FG3-1
executable build are added in subsequent steps:
Composition build complete. FG3 is the function group taken to executable
depth in this proof-of-concept. Its six sub-process packages are created and
wired into this package through `includes`; FG3-1 is built out as an
executable L4 package (BPMN + DMN + resource mappings), and FG3-2…FG3-6 are
draft composition placeholders pending their executable build-out.
| Sub-process | Title |
|-------------|-------|
| FG3-1 | Rēķina/kredītrēķina saņemšana par precēm/pakalpojumiem |
| FG3-2 | Iepirkuma līguma darbības izbeigšana |
| FG3-3 | Klienta datu pārvaldība |
| FG3-4 | Saimnieciskā norēķina veikšana |
| FG3-5 | Komandējuma norēķina veikšana |
| FG3-6 | Kopsavilkuma grāmatošana |
| Sub-process | Title | Package | State |
|-------------|-------|---------|-------|
| FG3-1 | Rēķina/kredītrēķina saņemšana par precēm/pakalpojumiem | `processes/fg3-1` | executable (BPMN + DMN) |
| FG3-2 | Iepirkuma līguma darbības izbeigšana | `processes/fg3-2` | draft stub |
| FG3-3 | Klienta datu pārvaldība | `processes/fg3-3` | draft stub |
| FG3-4 | Saimnieciskā norēķina veikšana | `processes/fg3-4` | draft stub |
| FG3-5 | Komandējuma norēķina veikšana | `processes/fg3-5` | draft stub |
| FG3-6 | Kopsavilkuma grāmatošana | `processes/fg3-6` | draft stub |
The sub-process packages are L4 and located at `processes/fg3-x/` as siblings
of this package, per `docs/conventions.md`. FG3 references them with
`includes` and never copies their executable artifacts (UAPF 2.2.0 §05,
no-duplication rule).

View File

@@ -3,8 +3,14 @@ id: vk.gramatvediba.fg3
name: "FG3 — Saistību un izdevumu uzskaite"
description: "Function group 3 - accounting for liabilities and expenses: supplier data and contract management, receipt and processing of invoices and supporting documents, and business-trip and economic settlements."
level: 2
version: 0.1.0
includes: []
version: 0.2.0
includes:
- ../fg3-1
- ../fg3-2
- ../fg3-3
- ../fg3-4
- ../fg3-5
- ../fg3-6
cornerstones:
bpmn: false
dmn: false