MGCWardenDeltaCancelled
It is canceled from the platform's workflow history page; no Warden form offers a Cancel. The diff set stays Routed, the holds stand, the document stays blocked for the acts they govern, and nothing re-raises the approval unattended, so a fresh one is raised from the Submit lever on the diff set. A cancel is accepted after the final approval until the workflow has processed it, and discards it (MGCWardenCancelHistory's summary has the platform source); and an approver who returned the work item did refuse it before the instance was canceled. The handler passes MGCWardenCancelHistory::note, the sentence its event-log row ends with, and the note carries it. MGCWardenFirmingCancelled and MGCWardenJournalGovCancelled take the note the same way. This is the reference copy of the reasoning for all five cancellation events (MGCWardenDeltaCancelled, MGCWardenFirmingCancelled, MGCWardenSalesGovCancelled, MGCWardenJournalGovCancelled, MGCWardenTACancelled). WHY THE EVENT EXISTS. ONE EVENT PER FAMILY, NOT ONE EVENT CARRYING THE FAMILY, AND THE REASON IS WHAT A SUBSCRIBER CAN FILTER ON. A D365 business event is activated per event CLASS, against an endpoint and a legal entity; the platform does not filter on payload members. With one cross-family cancellation event, the sales desk's endpoint would receive every purchase delta, firming, trade agreement and journal cancellation and would need code at the endpoint to throw them away, and every endpoint would be sent document keys of families its audience does not own. MGCWardenApprovalEventContract already argues against fanning governed detail out to endpoints Warden does not control. One shared event would save a subscriber who wants every cancellation four activations and pick up a new family without a fifth, but that subscriber already activates per family for requested, approved and rejected. So cancellation is the fourth act of the existing catalog: one class per family and act, grouped exactly as the *Rejected events are (this class serves both diff-set controls, as MGCWardenDeltaRejected does). THE PAYLOAD IS THE APPROVAL CONTRACT WITH Decision = 'Canceled', not a new contract. A second contract would be a second place to forget a field. THE CORRELATION IS THE CANCELED INSTANCE'S. The handler passes MGCWardenRouteCorrelation::fromContext of the WorkflowContext it was handed, which names the instance being canceled by definition. MGCWardenDeltaApproved and MGCWardenDeltaRejected publish the diff set's stored WorkflowCorrelationId instead. That is the same id whenever the submit stamped it, so here the stored id is the fallback, used only when the context answers blank. SENT FROM canceled() ONLY, through MGCWardenGovernanceEventSender::send: the product-wide switch (MGCWardenParameters.BusinessEventsEnabled) that this family's other events use. holds every handler that announces a refusal to raising a cancellation event from canceled(), through the same sender as its other events, carrying the context's correlation.
- Event id:
MGCWardenDeltaCancelled - Contract class:
MGCWardenApprovalEventContract
Payload fields
| Name | Type | Description |
|---|---|---|
ControlFamily | str | |
Decision | str | |
DocumentKey | MGCWardenDocumentKey | |
DocumentTable | str | |
DocumentRecId | RefRecId | |
GovernanceRef | str | |
PolicyCode | MGCWardenPolicyCode | |
PolicyVersion | int | |
CorrelationId | str | |
DecisionNote | str | |
Company | DataAreaId | |
ActorRef | MGCWardenUserRef |