Event catalogue
The events the gateway sends about a register operation, when each one is sent and what its data holds.
On this page
The gateway sends an event when you record one of three points of a register operation: its transmission, the answer registered or the answer rejected. Every event has the same envelope; the type and data say what happened.
| Type | Sent when | Status in data |
|---|---|---|
com.rdcopilot.reges.operation.submitted.v1 | You record the transmission with submitOperation. | submitted |
com.rdcopilot.reges.operation.registered.v1 | You record the answer registered with recordAnswer. | registered |
com.rdcopilot.reges.operation.rejected.v1 | You record the answer rejected with recordAnswer. | rejected |
The data of an event
| Field | Meaning |
|---|---|
number | The number of the register operation. |
kind | The kind of the operation, for example hire or change-salary. |
status | The status the operation entered: the last part of the type. |
reference | Only on operation.registered: the reference the register gave. |
message | Only on operation.rejected: the words of the register, exactly as written. |
late | Only on operation.submitted after the deadline: true, with the reason that was recorded. |
aggregateId is the registerOperationId and aggregateRevision is the revision of the operation after the change. legalCompanyId is the id of the employer. Read the operation for everything else: an event says that something happened, not everything about the operation.
operation.registered
The change of salary RG-2026-001479 was registered, and the reference arrives in data.
{
"specversion": "1.0",
"id": "41643ca9-16e3-4f19-9f65-88c47813845b",
"type": "com.rdcopilot.reges.operation.registered.v1",
"source": "/reges/v1",
"time": "2026-11-02T10:12:00Z",
"customerOrgId": "82190ff1-d914-4589-b40e-7d44b41db27d",
"legalCompanyId": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
"aggregateType": "register_operation",
"aggregateId": "1453a253-8c3c-41cc-99e0-23855a04de29",
"aggregateRevision": 6,
"correlationId": "0987c14a-31a6-43e1-b7e0-ea42b21e8ef1",
"causationId": "0dbdf238-130c-4fcb-9551-5102bdf4e261",
"actor": {
"serviceId": "reges-gateway"
},
"data": {
"number": "RG-2026-001479",
"kind": "change-salary",
"status": "registered",
"reference": "R2026-0479033"
}
} operation.rejected
The change of terms RG-2026-001466 was rejected, and the words of the register arrive in data. A rejected operation never changes: the correction is a new draft linked by correctionOf.
{
"specversion": "1.0",
"id": "c4dc4e2d-757a-469b-a913-4804b7438522",
"type": "com.rdcopilot.reges.operation.rejected.v1",
"source": "/reges/v1",
"time": "2026-11-06T11:20:00Z",
"customerOrgId": "82190ff1-d914-4589-b40e-7d44b41db27d",
"legalCompanyId": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
"aggregateType": "register_operation",
"aggregateId": "a19627dd-ae3d-486b-8ba9-07fba95000e4",
"aggregateRevision": 6,
"correlationId": "35a632c6-ea6c-453d-8e8f-9dff2964f0ea",
"causationId": "46cacb61-33f6-4c49-b5d8-21ddd2bb7818",
"actor": {
"serviceId": "reges-gateway"
},
"data": {
"number": "RG-2026-001466",
"kind": "change-terms",
"status": "rejected",
"message": "Funcția nu corespunde codului COR transmis."
}
} What does not send an event
- A draft, a check, a validation and an approval.
processing,manual_reviewandcancelled: read the operation, or the late list, on your own schedule. See Lifecycle and statuses.
Register an endpoint to receive these events: see Subscriptions. An event your endpoint does not confirm is sent again and then parked until you replay it: see Delivery and retries and Replay.