6.2 Implementation
The definition of a modular node and the `modular` flag it requires.
referenced-twice-without-modular
| Description | Node `5` is a child of both node `2` and node `3`, but does not have `modular: true`. |
|---|---|
| Expect | reject |
| Layer | semantic |
| RUML | 6-2-implementation.fixtures/reject-referenced-twice-without-modular.ruml |
| Spec | §6.2 |
| Expected rule violations | MOD-01 |
| At | /rulemap/nodes/5 |
{ "$format": "RUML", "$specVersion": "1.0", "metadata": { "id": "3f6b2c1e-8d4a-4e5f-9a7b-1c2d3e4f5a6b", "version": "1.0.0", "created": "2024-01-01T00:00:00Z", "modified": "2024-01-01T00:00:00Z", "status": "draft" }, "rulemap": { "nodes": { "1": { "id": "b6620b3c-4279-4a45-9115-c8bb2032d868", "operator": "AND", "label": "Antrag", "children": ["2", "3"] }, "2": { "id": "ec36948d-fbb2-4815-985a-bd5e9375d934", "operator": "AND", "label": "Antrag A", "children": ["5"] }, "3": { "id": "0eb360a6-626a-406d-89a1-9f434ced141b", "operator": "AND", "label": "Antrag B", "children": ["5"] }, "5": { "id": "6840b48d-117f-474e-ae4e-337b8e60537c", "label": "Mehrfach referenziert" } } }}referenced-twice-by-one-parent-without-modular
| Description | Node `1` lists node `2` twice in its `children` array, so node `2` is referenced more than once, but it does not have `modular: true`. |
|---|---|
| Expect | reject |
| Layer | semantic |
| RUML | 6-2-implementation.fixtures/reject-referenced-twice-by-one-parent-without-modular.ruml |
| Spec | §6.2 |
| Expected rule violations | MOD-01 |
| At | /rulemap/nodes/2 |
{ "$format": "RUML", "$specVersion": "1.0", "metadata": { "id": "5f3a7c9e-2d4b-4a6c-8e1f-0b9d7c5a3e2f", "version": "1.0.0", "created": "2024-01-01T00:00:00Z", "modified": "2024-01-01T00:00:00Z", "status": "inForce", "validFrom": "2024-01-01T00:00:00Z" }, "rulemap": { "nodes": { "1": { "id": "b6620b3c-4279-4a45-9115-c8bb2032d868", "operator": "OR", "label": "Antrag", "children": ["2", "2"] }, "2": { "id": "ec36948d-fbb2-4815-985a-bd5e9375d934", "label": "Unterschrift liegt vor" } } }}modular-with-single-parent
| Description | Node `5` has `modular: true` but is a child of node `2` only, so it is not modular. A validator reports a warning; the document stays valid. |
|---|---|
| Expect | accept |
| Layer | semantic |
| RUML | 6-2-implementation.fixtures/accept-modular-with-single-parent.ruml |
| Spec | §6.2 |
{ "$format": "RUML", "$specVersion": "1.0", "metadata": { "id": "7a1c9e42-3b5d-4f6a-8c2e-9d0b1a2c3e4f", "version": "1.0.0", "created": "2024-01-01T00:00:00Z", "modified": "2024-01-01T00:00:00Z", "status": "inForce", "validFrom": "2024-01-01T00:00:00Z" }, "rulemap": { "nodes": { "1": { "id": "b6620b3c-4279-4a45-9115-c8bb2032d868", "operator": "AND", "label": "Antrag", "children": ["2", "3"] }, "2": { "id": "ec36948d-fbb2-4815-985a-bd5e9375d934", "operator": "AND", "label": "Antrag A", "children": ["5"] }, "3": { "id": "0eb360a6-626a-406d-89a1-9f434ced141b", "operator": "AND", "label": "Antrag B", "children": ["6"] }, "5": { "id": "6840b48d-117f-474e-ae4e-337b8e60537c", "label": "Nur einmal referenziert", "modular": true }, "6": { "id": "4e2d8f1a-6b3c-4d5e-9f7a-2b1c0d9e8f7a", "label": "Einfach referenziert" } } }}