Skip to main content

MGCEarmarkEventLogEntity

The Earmark timeline, read-only. Every lifecycle act on every Earmark document writes one append-only row here through the timeline service, recording the document, the event, the real executing user, whether the write was made by automation, and the before and after values where they are meaningful. The entity exists for audit export and monitoring; its staging table serves export only, because the platform routes every data-management export through one. It cannot create, change or delete a timeline row, and neither can anything else, because the table's own update and delete refuse. Rows are purged only by the retention task, past the timeline retention day-count on the Earmark parameters. It is deliberately not part of the copy-configuration set - a timeline is evidence about one environment and means nothing in another. Implements requirements A17 and A21.

  • Public collection name: MGCEarmarkEventLogs
  • Primary key: EventLogRecId, DocumentNaturalKey

Fields​

NameTypeMandatoryDescription
EventLogRecIdRefRecIdNo
DocumentTypeMGCEarmarkDocumentTypeNo
DocumentRecIdRefRecIdYesThe record reference of the document the act was recorded against. It is the join to the document and, with the document type, the key the timeline FactBox, the timeline inquiry and the retention purge all read.
DocumentNaturalKeyMGCEarmarkNaturalKeyNoThe readable identifier of the document - the deal ID, the claim reference, the inventory transaction - stored beside the record reference so the row stays explicable in an export and after the document itself has been archived or migrated. A timeline row outlives what it describes, which is exactly why both halves are kept.
EventTypeMGCEarmarkEventTypeNo
ActorUserIdYesThe user who actually performed the act. It is the real executing user in every case, including engine, batch and post-commit writes, where the question worth answering is who ran the batch. An automated write says so through the Automation column rather than by putting an automation identity here.
AutomationWriteNoYesIdNoWhether the act was performed by an engine, a batch or a post-commit step rather than directly by a person. When it is set, the timeline FactBox and the timeline inquiry present the act as automation while the Actor column still records who ran it. Two facts, two columns - collapsing them would lose the only answer to the audit question.
EventDateTimeTransDateTimeYesWhen the act was recorded, in UTC. It is stamped by the timeline service rather than supplied by the caller, and it is the column the timeline retention purge and every date filter read.
DetailNotesNoWhat the act changed, in words - which column moved, which targeting row was added, which cap was reached. It carries the context that the event type alone cannot, and it is the column a support engineer reads first when reconstructing what happened.
BeforeValueMGCEarmarkReasonNoteNoThe value as it stood before the act, where a before and after pair is meaningful - a status, an amount, a cap, a targeting row. It is blank for acts that changed nothing, such as a submission or a copy.
AfterValueMGCEarmarkReasonNoteNoThe value as it stands after the act, where a before and after pair is meaningful.

Mappings​

Entity fieldData sourceField
EventLogRecIdMGCEarmarkEventLogRecId
DocumentTypeMGCEarmarkEventLogDocumentType
DocumentRecIdMGCEarmarkEventLogDocumentRecId
DocumentNaturalKeyMGCEarmarkEventLogDocumentNaturalKey
EventTypeMGCEarmarkEventLogEventType
ActorMGCEarmarkEventLogActor
AutomationWriteMGCEarmarkEventLogAutomationWrite
EventDateTimeMGCEarmarkEventLogEventDateTime
DetailMGCEarmarkEventLogDetail
BeforeValueMGCEarmarkEventLogBeforeValue
AfterValueMGCEarmarkEventLogAfterValue