Archival & Destruction Workflow
Standards
| Standard | Description |
|---|---|
| GEMMA Archiveringscomponent | Dutch municipal reference architecture for archival |
| Archiefwet 1995 | Dutch Archives Act governing retention and destruction |
| Selectielijst Gemeenten | Municipal selection list defining retention categories |
| NEN-ISO 15489 | International standard for records management |
Overview
OpenRegister provides a complete archival and destruction workflow for managing the lifecycle of registered objects. This includes selection lists that define retention categories, automated retention tracking per object, destruction list generation when retention periods expire, and a formal approval/rejection workflow before permanent deletion.
Status
Routes: NOT YET REGISTERED -- The ArchivalController class and all supporting code (entities, mappers, service, background job) exist in the codebase, but the routes have not been added to appinfo/routes.php. The archival API endpoints are therefore not yet accessible. The database migration (Version1Date20260325000000) also needs to be applied to create the selection_lists and destruction_lists tables.
Key Capabilities
Selection List Management
- Full CRUD for selection list entries (category, retention years, action type)
- Each selection list entry maps to an archival category from the Selectielijst Gemeenten
- Configurable retention period in years
- Action types:
destroy,transfer,permanent(permanent preservation)
Retention Metadata
- Per-object retention metadata stored in the object's
retentionJSON field - Tracks retention start date, category reference, and computed expiry
- API to get and set retention metadata on individual objects
Destruction List Generation
- Automated generation of destruction lists based on expired retention periods
- Background job (
DestructionCheckJob) runs daily to identify objects past retention - Destruction lists group objects for batch review
Approval Workflow
- Formal approve/reject workflow for destruction lists
- Approval triggers permanent deletion of listed objects
- Rejection removes individual objects from a destruction list with reason tracking
- Full audit trail via OpenRegister's standard audit logging
Linked-record conflicts
Destroying a record can break a record that is kept. When a destruction list is made, every entry is compared with the records it links to and the records that link to it (at most 50 each way), leaving out records on the same list. A linked record is a conflict when:
| kind | when |
|---|---|
linked-kept-permanently | the linked record is nominated bewaren |
linked-kept-longer | its archiefactiedatum is later than the entry's |
linked-date-unknown | it has no archiefactiedatum yet |
linked-on-hold | it is under an active legal hold |
linked-derives-date-from-this | it derives its own archive date from the entry through a relation method |
Each entry carries linkConflicts, linkConflictsTruncated (true when more
links exist than were examined, or when the check could not run) and the list
carries linkConflictCount. A conflict reads:
{
"kind": "linked-kept-permanently",
"direction": "incoming",
"uuid": "b1f0…",
"title": "Besluit kapvergunning",
"schema": 14,
"archiefnominatie": "bewaren",
"archiefactiedatum": null
}
direction is incoming when the linked record points at the entry (it would
dangle after the destroy) and outgoing when the entry points at it. Incoming
conflicts are listed first.
Refreshed at review. GET /api/archival/destruction-lists/{id} and
GET /api/archival/reviews/pending recompute the conflicts of the entries
they return, because a date can move after the list was made. Each returned
entry (or pending row) carries linkConflictsCheckedAt, the moment of that
check; the list read also returns the recomputed linkConflictCount and a
list-level linkConflictsCheckedAt. The recomputation is not saved: the
stored list keeps the conflicts it was made with.
Destroying over a conflict is acknowledged. A destroy answer to
POST /api/archival/destruction-lists/{id}/entries/{entryId}/decision on an
entry with conflicts, or whose conflicts could not all be established, is
refused with 422 before anything is done to the record:
{
"error": "This record has link conflicts; destroying it needs acknowledgeConflicts: true and a reason",
"linkConflicts": [ { "kind": "linked-kept-permanently", "...": "..." } ],
"linkConflictsTruncated": false
}
Sending "acknowledgeConflicts": true with the answer and its reason records
the destroy; the decision in the list's decisions history then carries
overriddenConflicts, the conflicts as they stood at that moment, and the
archival.review_decided audit row carries overriddenConflicts with their
count. retain and transfer answers destroy nothing and need no
acknowledgement.
The approval says what it approves. Each approval recorded on a list
carries destroyedOverConflict: the number of entries a reviewer destroyed
over an acknowledged conflict.
Architecture
Backend Files
| File | Purpose |
|---|---|
lib/Controller/ArchivalController.php | API controller with 11 endpoints |
lib/Service/ArchivalService.php | Business logic for retention and destruction |
lib/Db/SelectionList.php | Selection list entity |
lib/Db/SelectionListMapper.php | Selection list database mapper |
lib/Db/DestructionList.php | Destruction list entity |
lib/Db/DestructionListMapper.php | Destruction list database mapper |
lib/BackgroundJob/DestructionCheckJob.php | Daily cron job for retention expiry checks |
lib/Migration/Version1Date20260325000000.php | Database migration for archival tables |
API Endpoints (Planned)
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/archival/selection-lists | List all selection list entries |
| GET | /api/archival/selection-lists/{id} | Get a single selection list entry |
| POST | /api/archival/selection-lists | Create a selection list entry |
| PUT | /api/archival/selection-lists/{id} | Update a selection list entry |
| DELETE | /api/archival/selection-lists/{id} | Delete a selection list entry |
| GET | /api/archival/objects/{id}/retention | Get retention metadata for an object |
| PUT | /api/archival/objects/{id}/retention | Set retention metadata for an object |
| GET | /api/archival/destruction-lists | List all destruction lists |
| GET | /api/archival/destruction-lists/{id} | Get a single destruction list |
| POST | /api/archival/destruction-lists/generate | Generate destruction list from expired retentions |
| POST | /api/archival/destruction-lists/{id}/approve | Approve and execute a destruction list |
| POST | /api/archival/destruction-lists/{id}/reject | Reject objects from a destruction list |
API Test Results (2026-03-25)
All archival endpoints return HTTP 404 because routes are not yet registered in appinfo/routes.php. The controller code, entities, mappers, service layer, and background job are fully implemented but not wired up.
| Endpoint | Result |
|---|---|
GET /api/archival/selection-lists | 404 (route not registered) |
POST /api/archival/selection-lists | 404 (route not registered) |
GET /api/archival/destruction-lists | 404 (route not registered) |