Skip to main content

MGCWardenSalesGovBreachWarned

The breach is recorded and the document proceeds: no hold was placed, no approval was raised, nothing was refused. WHY A NEW EVENT RATHER THAN THE ONE A BREACH SENDS TODAY. Under Block a breach reaches the outside world as MGCWardenHoldPlaced, and then MGCWardenSalesGovApprovalRequested when the approval starts. Both describe acts a Warn breach does not perform, so sending either would tell a subscriber the document was stopped when it was not - the false-record class this model keeps removing. And sending nothing would make a Warn policy SILENT to every integration that learned of breaches through HoldPlaced, which is the "Warn records the breach" half of the decision lost at the boundary. So the breach gets its own name. Shape and payload: MGCWardenApprovalEventContract, the contract the family's other four events use, with ControlFamily 'SalesGovernance' and Decision 'Warned'. PolicyCode and PolicyVersion are the governing Warn policy's, taken from the policy itself rather than from MGCWardenSalesGovState, which a Warn breach deliberately does not stamp (see MGCWardenSalesEvaluationEngine::recordWarnedBreach). CorrelationId is blank BECAUSE THERE IS NO WORKFLOW INSTANCE to correlate with - the field exists for the approval lifecycle, and inventing an id would give a subscriber something to join that joins nothing. GovernanceRef is the document key, as on the family's other events. Sent only from MGCWardenSalesEvaluationEngine::recordWarnedBreach, through MGCWardenGovernanceEventSender::send (MGCWardenParameters.BusinessEventsEnabled), the switch the family's other events use, inside the transaction that writes the DegradedToWarn row.

  • Event id: MGCWardenSalesGovBreachWarned
  • Contract class: MGCWardenApprovalEventContract

Payload fields​

NameTypeDescription
ControlFamilystr
Decisionstr
DocumentKeyMGCWardenDocumentKey
DocumentTablestr
DocumentRecIdRefRecId
GovernanceRefstr
PolicyCodeMGCWardenPolicyCode
PolicyVersionint
CorrelationIdstr
DecisionNotestr
CompanyDataAreaId
ActorRefMGCWardenUserRef