Skip to main content

MGCWardenTACancelled

Nobody refused anything: the gate stays set, the holds stand and posting stays refused. MGCWardenTARouteDrainBatch raises a fresh approval, which announces itself as MGCWardenTAApprovalRequested, provided that drain is scheduled and the trade agreement feature is on; after three lost activations the drain escalates once and stops. A cancel can be accepted after the last approval, before the workflow has processed it, and then discards that approval (MGCWardenCancelHistory's summary). The decision note now ends with the sentence MGCWardenCancelHistory::note reads from the instance's history, which the handler passes in, so a subscriber is told whether an approval was recorded and what was lost if it was the last. The catalog description has room for 120 characters, so it says only that the workflow was canceled before it completed; the note carries the rest. The note parameter is optional only so that a caller with no context to read builds a note that claims nothing about the approvers, never one that says nobody decided. Deleting a gated journal cancels its approval, so this event is also sent for a journal that no longer exists, and the lead above would then be false. The handler passes _journalDeleted and the lead says the journal was deleted and that nothing raises the approval again. Shape, payload, correlation and switch: as MGCWardenDeltaCancelled, the reference copy. ControlFamily is 'TradeAgreement' and PolicyCode is the 'TA-GATE' marker, not a policy row, for the reason MGCWardenApprovalEventContract::newFromTAGateState gives. Sent from MGCWardenTAApprovalWFEventHandler::canceled through MGCWardenGovernanceEventSender::send (MGCWardenParameters.BusinessEventsEnabled), the switch the family's other three events use.

  • Event id: MGCWardenTACancelled
  • Contract class: MGCWardenApprovalEventContract

Payload fields​

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