Skip to main content

Warden integrations

This page lists every way Warden exchanges data or control with something outside its own tables:

  • OData data entities;
  • the custom services;
  • business events;
  • workflow;
  • Electronic Reporting;
  • the leaver intake from an external HR system;
  • the feature toggles;
  • licensing;
  • the standard Dynamics 365 modules Warden builds on.

It is a reference for integration developers and implementers. Who may use each surface is in Security model.

1. OData data entities​

All 71 entities have IsPublic Yes, so each is an OData collection under /data/<collection>. The 69 entities over tables are also enabled for data management. The two KPI entities over views are not.

Each entity follows its source's company scope: "per company" entities set PrimaryCompanyContext to DataAreaId, and "shared" entities have none.

The "Granted by" column names the privilege that holds the entity permission. The roles that reach each privilege are in Security model. Access letters:

  • C: Create
  • R: Read
  • U: Update
  • D: Delete

1.1 Policy setup (writable)​

License block date. The six header entities below call MGCWardenLicenseGate from validateWrite :

  • MGCWardenPolicyEntity
  • MGCWardenSalesGovPolicyEntity
  • MGCWardenPriceGuardPolicyEntity
  • MGCWardenJournalPolicyEntity
  • MGCWardenCountPolicyEntity
  • MGCWardenAuditRegisterEntryEntity, in §1.3

On a production environment past the license block date, a write through any of them is refused. Their line tables call the same gate from validateWrite and validateDelete. What else stops and what stays open is in Configuration reference.

EntityCollectionCompanyGranted by
MGCWardenPolicyEntityWardenGuardPoliciesper companyMGCWardenGovConfigEntityPriv (CRUD)
MGCWardenPolicyScopeEntityWardenGuardPolicyScopesper companyMGCWardenGovConfigEntityPriv (CRUD)
MGCWardenFieldMatrixLineEntityWardenFieldMatrixLinesper companyMGCWardenGovConfigEntityPriv (CRUD)
MGCWardenSalesGovPolicyEntityWardenSalesGovPoliciesper companyMGCWardenSalesGovPolicyEntityPriv (CRUD)
MGCWardenSalesGovThresholdEntityWardenSalesGovThresholdsper companyMGCWardenSalesGovPolicyEntityPriv (CRUD)
MGCWardenPriceGuardPolicyEntityWardenPriceGuardPoliciesper companyMGCWardenGovConfigEntityPriv (CRUD)
MGCWardenPriceGuardScopeEntityWardenPriceGuardScopesper companyMGCWardenGovConfigEntityPriv (CRUD)
MGCWardenJournalPolicyEntityWardenJournalPoliciesper companyMGCWardenGovConfigEntityPriv (CRUD)
MGCWardenJournalPolicyBandEntityWardenJournalPolicyBandsper companyMGCWardenGovConfigEntityPriv (CRUD)
MGCWardenCountPolicyEntityWardenCountPoliciesper companyMGCWardenGovConfigEntityPriv (CRUD)

An entity write cannot activate a version. A version's Status changes only through its activation workflow. To submit, create a new version, simulate or request retirement, use MGCWardenPolicyLifecycleService (§2).

1.2 Governance configuration (writable)​

EntityCollectionCompanyGranted by
MGCWardenParametersEntityWardenGuardParametersper companyMGCWardenGovConfigEntityPriv (CRUD)
MGCWardenCountParametersEntityWardenCountParametersper companyMGCWardenGovConfigEntityPriv (CRUD)
MGCWardenSigningLimitEntityWardenSigningLimitsper companyMGCWardenGovConfigEntityPriv (CRUD)
MGCWardenReapprovalExclusionEntityWardenReapprovalExclusionsper companyMGCWardenGovConfigEntityPriv (CRUD)
MGCWardenDeviceUserMapEntityWardenDeviceUserMapsper companyMGCWardenGovConfigEntityPriv (CRU)

1.3 Audit configuration​

EntityCollectionCompanyAccessGranted by
MGCWardenAuditParametersEntityWardenAuditParameterssharedwritableMGCWardenAuditConfigEntityPriv (CRUD)
MGCWardenAuditComplianceParametersEntityWardenAuditComplianceParametersper companywritableMGCWardenAuditConfigEntityPriv (CRUD)
MGCWardenAuditRegisterEntryEntityWardenAuditRegisterEntriessharedwritable; license gateMGCWardenAuditConfigEntityPriv (CRUD)
MGCWardenAuditRegisterColumnEntityWardenAuditRegisterColumnssharedwritableMGCWardenAuditConfigEntityPriv (CRUD)
MGCWardenAuditRetentionClassEntityWardenAuditRetentionClassessharedwritableMGCWardenAuditConfigEntityPriv (CRUD)
MGCWardenAuditHealthRuleEntityWardenAuditHealthRulessharedwritableMGCWardenAuditConfigEntityPriv (CRUD)
MGCWardenAuditSensitiveRoleEntityWardenAuditSensitiveRolesper companywritableMGCWardenAuditConfigEntityPriv (CRUD)
MGCWardenAuditPackTemplateEntityWardenAuditPackTemplatesper companywritableMGCWardenAuditConfigEntityPriv (CRUD)
MGCWardenAuditCatalogEntryEntityWardenAuditCatalogEntriessharedread-onlyMGCWardenAuditConfigEntityPriv (R)

1.4 Leaver intake (writable)​

MGCWardenAuditLeaverIntakeEntity (WardenAuditLeaverIntakes, per company) is the one entity an external system is meant to write. Section 6 describes it. Write access is through MGCWardenLeaverIntakePriv (CRU), which ships in no role. Read access is through MGCWardenLeaverIntakeExportPriv (R).

1.5 Guard runtime and evidence (read-only)​

Every entity in this group and the next three groups has IsReadOnly Yes.

EntityCollectionCompanyGranted by
MGCWardenHoldEntityWardenGovernanceHoldsper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenDiffSetEntityWardenChangeDiffSetsper companyMGCWardenAuditEvidenceEntityPriv
MGCWardenDiffLineEntityWardenChangeDiffLinesper companyMGCWardenAuditEvidenceEntityPriv
MGCWardenEventLogEntityWardenGovernanceEventsper companyMGCWardenAuditEvidenceEntityPriv
MGCWardenESignatureEntityWardenElectronicSignaturesper companyMGCWardenESignatureEntityPriv
MGCWardenExecutionExceptionEntityWardenExecutionExceptionsper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenFieldBaselineEntityWardenFieldApprovalBaselinesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenFirmingRequestEntityWardenFirmingApprovalRequestsper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenSalesGovStateEntityWardenSalesGovernanceStatesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenJournalGovStateEntityWardenJournalGovernanceStatesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenTAGateStateEntityWardenTradeAgreementGateStatesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenDuplicateOverrideEntityWardenDuplicateOverridesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenSetupGapSnapshotEntityWardenSetupGapSnapshotsper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenSimulationRunEntityWardenGuardPolicySimulationRunsper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenSimulationLineEntityWardenGuardPolicySimulationLinesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenSalesGovSweepRunEntityWardenSalesGovernanceSweepRunsper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenSalesGovSweepLineEntityWardenSalesGovernanceSweepLinesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenTAGovSweepRunEntityWardenTradeAgreementApprovalSweepRunsper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenTAGovSweepLineEntityWardenTradeAgreementApprovalSweepLinesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenDuplicateSweepRunEntityWardenDuplicateRequisitionSweepRunsper companyMGCWardenGuardEvidenceEntityPriv

1.6 Count governance (read-only)​

EntityCollectionCompanyGranted by
MGCWardenCountCaseEntityWardenCountCasesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenCountLineageEntityWardenCountLineagesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenCountJournalQueueEntityWardenCountJournalQueueEntriesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenMissingQueueEntryEntityWardenMissingQueueEntriesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenCountWorkerLogEntityWardenCountWorkerLogEntriesper companyMGCWardenGuardEvidenceEntityPriv
MGCWardenCountKPIEntityWardenCountKPIsper companyMGCWardenCountKPIEntityPriv
MGCWardenCountMissingKPIEntityWardenCountMissingKPIsper companyMGCWardenCountKPIEntityPriv

The two KPI entities are aggregates over MGCWardenCountKPIView and MGCWardenCountMissingKPIView. They name no case, item, location or person, which is why they have a privilege of their own (USER_GUIDE §12).

1.7 Audit store, purge and compliance evidence (read-only)​

EntityCollectionCompanyGranted by
MGCWardenAuditQueueEntityWardenAuditQueueEntriessharedMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditEventEntityWardenAuditEventssharedMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditDetailParamEntityWardenAuditDetailParameterssharedMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditHashAnchorEntityWardenAuditHashAnchorssharedMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditAnchorReconciliationEntityWardenAuditAnchorReconciliationssharedMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditVerificationRunEntityWardenAuditVerificationRunssharedMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditDropTallyEntityWardenAuditDropTalliessharedMGCWardenAuditOperationalEntityPriv
MGCWardenAuditHealthAlertEntityWardenAuditHealthAlertssharedMGCWardenAuditOperationalEntityPriv
MGCWardenAuditPurgeProposalEntityWardenAuditPurgeProposalssharedMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditPurgeExclusionEntityWardenAuditPurgeExclusionssharedMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditPurgeProposalRunEntityWardenAuditPurgeProposalRunssharedMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditPurgeCertificateEntityWardenAuditPurgeCertificatessharedMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditExportManifestEntityWardenAuditExportManifestssharedMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditRoleEventEntityWardenAuditRoleEventsper companyMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditDeprovisioningEntryEntityWardenAuditDeprovisioningEntriesper companyMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditPackRunEntityWardenAuditPackRunsper companyMGCWardenAuditEvidenceEntityPriv
MGCWardenAuditPackSectionEntityWardenEvidencePackSectionsper companyMGCWardenAuditEvidenceEntityPriv
MGCWardenErasureRequestEntityWardenErasureRequestssharedMGCWardenAuditEvidenceEntityPriv
MGCWardenErasureCertificateEntityWardenErasureCertificatessharedMGCWardenAuditEvidenceEntityPriv

Store rows and other evidence carry subject references, not names (D11). An export does not resolve them. Resolving is a separate, recorded act; see Security model.

1.8 Tables with no entity​

Seven regular tables have no entity:

  • MGCWardenCustReqIndex
  • MGCWardenAuditFieldExposure
  • MGCWardenAuditRoleSnapshot
  • MGCWardenRetirementRequest
  • MGCWardenIdentityVault
  • MGCWardenAuditLeaverIntakeChainHead
  • MGCWardenIdentityCutover

Each is left out for a stated reason, which a build check requires. The identity vault in particular is never exposed.

2. Custom services​

All six services are members of the service group MGCWardenServices, which has AutoDeploy Yes. Every operation has EnableIdempotence Yes. Each operation is reached at /api/services/MGCWardenServices/<service>/<operation>.

Every operation applies the same check the client applies. MGCWardenApiDispatch asks canRun of the menu item that mirrors the operation, and returns Denied, Refused or Failed rather than throwing.

The "Who may call" column lists the shipped roles that reach a privilege granting the operation at Invoke. It was generated from AxSecurityPrivilege entry points of type ServiceOperation. "No role" means every granting privilege is ungranted by design. A system administrator can call every operation.

2.1 MGCWardenWorkItemService (4 operations)​

OperationWho may call
approve, reject, delegateMGCWardenControlsOwner and MGCWardenGuardAdministrator, through the 15 approval privileges (one per workflow type)
resubmitThe same, plus MGCWardenAuditAdministrator (purge and register activation) and MGCWardenIdentityResolver (erasure)

Approve passes through the five approve-time gates that the in-client Approve also passes through (MGCWardenApproveGateSet). See Security model.

2.2 MGCWardenPolicyLifecycleService (18 operations)​

OperationWho may call
submitGuardPolicy, submitSalesGovPolicy, submitJournalPolicy, submitPriceGuardPolicy, submitCountPolicyMGCWardenGuardAdministrator
submitRegisterEntryMGCWardenAuditAdministrator
newGuardPolicyVersion, newSalesGovPolicyVersion, newJournalPolicyVersion, newPriceGuardPolicyVersion, newCountPolicyVersionMGCWardenGuardAdministrator
simulateGuardPolicyMGCWardenGuardAdministrator
requestGuardPolicyRetirement, requestSalesGovPolicyRetirement, requestJournalPolicyRetirement, requestPriceGuardPolicyRetirement, requestCountPolicyRetirementMGCWardenGuardAdministrator
requestRegisterEntryRetirementMGCWardenAuditAdministrator

The submit and new-version operations refuse past the license block date on production (§8). The retirement requests do not.

2.3 MGCWardenGuardOperationsService (13 operations)​

OperationWho may call
releaseHold (break-glass)No role
takeException, retryException, dismissExceptionMGCWardenControlsOwner, MGCWardenGuardAdministrator
submitDeltaRoute, submitExcludedClassRoute, submitFirmingRoute, submitSalesGovRouteMGCWardenGuardAdministrator
takeReconfirmationMGCWardenControlsOwner, MGCWardenGuardAdministrator
submitJournalReview, submitJournalReversal, submitTradeAgreementJournalMGCWardenControlsOwner
registerDuplicateOverrideNo role

2.4 MGCWardenCountOperationsService (8 operations)​

OperationWho may call
takeCase, acceptCase, recountCase, quarantineCase, proposeWriteOff, proposeResolve, resolveToStockMGCWardenCountSupervisor
writeOffNo role

2.5 MGCWardenAuditOperationsService (14 operations)​

OperationWho may call
enrollFromCatalogMGCWardenAuditAdministrator
attestDeprovisioning, exceptDeprovisioning, takeDeprovisioning, assignDeprovisioningNo role
exportPack, renderPackMGCWardenAuditAdministrator
submitPurgeProposal, reviewHealthAlert, evaluateAuditHealthMGCWardenAuditAdministrator
raiseErasureRequest, submitErasureRequestMGCWardenIdentityResolver
verifyAuditStoreReconstructionMGCWardenAuditor
withdrawLeaverIntakeNo role

2.6 MGCWardenBatchService (27 operations)​

Each operation runs one Warden batch class now, through the same menu item a user would press.

OperationRunsWho may call
runInitializeMGCWardenInitializeMenuItemMGCWardenGuardAdministrator
runRetentionCleanupMGCWardenRetentionCleanupMGCWardenGuardAdministrator
runBreakGlassExpiryMGCWardenBreakGlassExpiryBatchMGCWardenGuardAdministrator
runDeltaRouteDrain, runFirmingRouteDrain, runTARouteDrain, runJournalRouteDrainMGCWardenDeltaRouteDrainBatch, MGCWardenFirmingRouteDrainBatch, MGCWardenTARouteDrainBatch, MGCWardenJournalRouteDrainBatchMGCWardenGuardAdministrator
runSetupGapSnapshotMGCWardenSetupGapSnapshotBatchMGCWardenGuardAdministrator
runDuplicateSweep, runSalesGovSweep, runTAGovSweepMGCWardenDuplicateSweepBatch, MGCWardenSalesGovSweep, MGCWardenTAGovSweepMGCWardenControlsOwner
runCountConsolidation, runMissingMonitor, runCountRetentionMGCWardenCountConsolidationRun, MGCWardenMissingQueueMonitor, MGCWardenCountRetentionMGCWardenGuardAdministrator
runAuditWriter, runAuditIngestion, runAuditRoleCapture, runAuditRoleRetention, runAuditIntegrity, runAuditHealthMGCWardenAuditWriter, MGCWardenAuditGuardIngestion, MGCWardenAuditRoleCapture, MGCWardenAuditRoleEventRetention, MGCWardenAuditIntegrityBatch, MGCWardenAuditHealthBatchMGCWardenAuditAdministrator
runAuditDeprovisioning, runDeprovisioningOverdueMonitorMGCWardenAuditDeprovisioning, MGCWardenDeprovisioningOverdueMonitorMGCWardenAuditAdministrator
runAuditPackBuilderMGCWardenAuditPackBuilderMGCWardenAuditAdministrator, MGCWardenAuditor
runAuditPurgeProposeMGCWardenAuditPurgeProposalGeneratorMGCWardenAuditAdministrator
runAuditPurgeExecuteMGCWardenAuditPurgeExecutionBatchMGCWardenAuditAdministrator
runErasureExecuteMGCWardenErasureExecutionBatchMGCWardenIdentityResolver
runAuditCatalogSeedMGCWardenAuditCatalogSeedMenuItemMGCWardenAuditAdministrator

The batch classes themselves are described in All batch processes, starting from Warden batch framework.

2.7 Totals​

  • Of the 84 operations, 76 are reachable from a shipped role.
  • The other eight are ungranted by design: releaseHold, registerDuplicateOverride, writeOff, withdrawLeaverIntake and the four deprovisioning operations. Each inherits the separation of the menu item it mirrors.

3. Business events​

All 43 business events belong to Warden. Each is declared with [BusinessEvents(...)] on a class that extends BusinessEventsBase.

Category. Count case and count journal events use ModuleAxapta::Inventory. All others use ModuleAxapta::SystemAdministration.

Switches. Every event is sent through MGCWardenGovernanceEventSender, which checks one of three parameter switches:

SwitchCovers
MGCWardenParameters.BusinessEventsEnabledGuard, approval, policy, hold and exception events, and MGCWardenAuditAnchorPublished
MGCWardenCountParameters.BusinessEventsEnabledThe count events, including MGCWardenCountPolicyActivated and MGCWardenCountPolicyRetired
MGCWardenAuditComplianceParameters.BusinessEventsEnabledMGCWardenAuditSensitiveRoleGranted

Business events must also be activated against an endpoint in the standard business events catalog.

Sending inside a transaction. There is no transaction-level guard on the send. The framework writes the event's commit-log row on the caller's connection. A send inside a transaction therefore commits or rolls back with the change it announces. The sender wraps the send in a catch. A catch naming UpdateConflict or DuplicateKeyException runs inside a transaction and every other catch does not. The sender's catch names neither, so a send failure at ttsLevel 1 or deeper rolls the caller back instead of being swallowed.

The "Raised" column below states where each send happens. Each statement was checked against the sending method and its comments on 2026-11-06.

3.1 Approval lifecycle (21 events, contract MGCWardenApprovalEventContract)​

Payload: EventTime, ControlFamily, Decision, DocumentKey, DocumentTable, DocumentRecId, GovernanceRef, PolicyCode, PolicyVersion, CorrelationId, DecisionNote, Company, ActorRef. ActorRef is a subject reference, not a user id.

FamilyEventsRaised by
Purchase delta and excluded classMGCWardenDeltaApprovalRequested, MGCWardenDeltaApproved, MGCWardenDeltaRejected, MGCWardenDeltaCancelledMGCWardenDeltaApprovalWFEventHandler, MGCWardenExcludedClassApprovalWFEventHandler
Planned order firmingMGCWardenFirmingApprovalRequested, MGCWardenFirmingApproved, MGCWardenFirmingRejected, MGCWardenFirmingCancelledMGCWardenFirmingApprovalWFEventHandler
Journal reversal and banded reviewMGCWardenJournalGovApprovalRequested, MGCWardenJournalGovApproved, MGCWardenJournalGovRejected, MGCWardenJournalGovCancelledMGCWardenJournalRevApprovalWFEventHandler, MGCWardenJournalReviewWFEventHandler
Sales governanceMGCWardenSalesGovApprovalRequested, MGCWardenSalesGovApproved, MGCWardenSalesGovRejected, MGCWardenSalesGovCancelledMGCWardenSalesGovApprovalWFEventHandler
Sales governance, Warn postureMGCWardenSalesGovBreachWarnedMGCWardenSalesEvaluationEngine.recordWarnedBreach
Trade agreementMGCWardenTAApprovalRequested, MGCWardenTAApproved, MGCWardenTARejected, MGCWardenTACancelledMGCWardenTAApprovalWFEventHandler

When each kind of event is raised:

  • …Requested is raised from the handler's started(). The delta handler's comment calls this "the first transaction-free moment", and the only point where "an approval was requested" is certainly true.
  • …Approved is raised from completed(), inside the workflow runtime's completion transaction (SysWorkflowQueue::workflowCompleted), as the handlers' comments record. It commits with the release it announces.
  • …Cancelled is raised from canceled(). The handlers' comments place this inside the workflow runtime's transaction.
  • …Rejected is raised from the Reject outcome's handler. A rejection returns the work item to its originator; the hold stands.
  • MGCWardenSalesGovBreachWarned is raised inside recordWarnedBreach's own transaction, with the Warn row it announces. No hold or approval follows.

3.2 Policy activated and retired (10 events)​

EventContract and payloadRaised by
MGCWardenPolicyActivatedMGCWardenPolicyActivatedContract: PolicyCode, PolicyVersion, DocumentFamily, Company, ActorRefMGCWardenPolicyActivationWFEventHandler.completed
MGCWardenSalesGovPolicyActivatedMGCWardenSalesGovPolicyActivatedContract: PolicyCode, PolicyVersion, PolicyFamily, Company, ActorRefMGCWardenSalesGovPolicyActivationWFEventHandler.completed
MGCWardenPriceGuardPolicyActivatedMGCWardenPriceGuardPolicyActivatedContract: same members as aboveMGCWardenPriceGuardPolicyActivationWFEventHandler.completed
MGCWardenJournalPolicyActivatedMGCWardenJournalPolicyActivatedContract: same members as aboveMGCWardenJournalPolicyActivationWFEventHandler.completed
MGCWardenCountPolicyActivatedMGCWardenCountPolicyActivatedContract: same members as aboveMGCWardenCountPolicyActivationWFEventHandler.completed
MGCWardenPolicyRetired, MGCWardenSalesGovPolicyRetired, MGCWardenPriceGuardPolicyRetired, MGCWardenJournalPolicyRetired, MGCWardenCountPolicyRetiredMGCWardenPolicyRetiredContract: PolicyCode, PolicyVersion, PolicyFamily, DocumentFamily, Company, ActorRefMGCWardenRetirementManager.announce

All ten are raised inside the activation workflow's completion. The retirement events are sent after the retirement manager's own commit, "the place the activation handlers send from", and only for a retirement that happened. There are no activation or retirement events for the Sensitivity Register.

3.3 Holds and execution exceptions (3 events)​

EventContract and payloadRaised by, and when
MGCWardenHoldPlacedMGCWardenHoldPlacedContract: HoldId, DocumentKey, HoldType, PolicyCode, Company, ActorRefMGCWardenHoldManager.announcePlacement, which returns without sending at ttsLevel other than 0. It is called either from placeHold, when the duplicate collapse ran, or from the transaction-free seams emitDeferredHoldPlaced and emitDeferredHoldPlacedForType. Those seams are reached from MGCWardenChangeInterceptor::completePendingRoute, the route drains and the sales evaluation engine. Exactly once: MGCWardenHold.PlacedEventEmittedDateTime is tested and stamped under pessimisticlock before the send
MGCWardenHoldReleasedMGCWardenHoldReleasedContract: HoldId, DocumentKey, ReleaseReason, BreakGlass, Company, ActorRefMGCWardenHoldManager.sendHoldEvent, from the two release paths when the transition happened. On an approval outcome it is raised inside the workflow runtime's completion transaction, so it commits with the release
MGCWardenExecutionExceptionCreatedMGCWardenExecutionExceptionCreatedContract: ExceptionId, Area, Reason, Severity, DocumentKey, CompanyMGCWardenExecutionExceptionManager (create, createDeduped, createOncePerOpenCause). The class's comments record that its callers run at ttsLevel 0. The deduplicating paths stamp BusinessEventEmittedDateTime, so one cause is announced once

3.4 Count governance (7 events)​

EventContractRaised by, and when
MGCWardenCountCaseCreatedMGCWardenCountCaseEventContractMGCWardenCountCaseService.createFromDeviation. On the main path, warehouse device capture, this runs inside the native cycle-count transaction (ttsLevel 1 or deeper), so the event commits or rolls back with the case
MGCWardenCountRecountGenerated, MGCWardenCountCaseQuarantined, MGCWardenCountWriteOffMGCWardenCountCaseEventContractMGCWardenCountCaseService.sendOutcomeEventInner, called from applyOutcome only after its ttscommit returned
MGCWardenCountCaseResolvedMGCWardenCountCaseEventContractMGCWardenMissingResolveService.sendResolvedEvent, after resolveToStock's commit
MGCWardenCountJournalCreatedMGCWardenCountJournalEventContractMGCWardenCountConsolidationRun.consolidateGroup, after its commit, on a batch stack at ttsLevel 0
MGCWardenCountJournalPostedMGCWardenCountJournalEventContractMGCWardenCountConsolidationRun.autoPost, after posting returned and the queue rows committed as Posted

The two count payloads:

  • MGCWardenCountCaseEventContract: CaseId, CaseStatus, Outcome, ItemId, WarehouseId, LocationId, DeltaQty, DeltaValue, RecountCount, OriginWorkId, PolicyCode, PolicyVersion, CountedByRef, DecisionNote, Company, ActorRef.
  • MGCWardenCountJournalEventContract: JournalId, JournalRecId, WarehouseId, WindowKey, LineCount, PostingMode, PolicyCode, PolicyVersion, DecisionNote, Company, ActorRef.

3.5 Audit and compliance (2 events)​

MGCWardenAuditAnchorPublished (contract MGCWardenAuditAnchorPublishedContract).

  • Payload: PartitionKey, FromSequence, ToSequence, HashValue, AnchoredDateTime, Company, RecordKind, LeaverIntakeCompany, LeaverIntakePublicationNumber, LeaverIntakeSequence, LeaverIntakeDigest, LeaverIntakeRemovedRows, LeaverIntakePreviousSequence, LeaverIntakePreviousDigestNow.
  • Raised by MGCWardenAuditHashChain. sendAnchorBusinessEvent runs after the anchor's own ttscommit. mirrorLeaverIntakeHead runs after each leaver intake chain head's publication of record has committed.
  • It is a best-effort mirror: a failure is recorded as a Warning execution exception and never stops anchoring.

MGCWardenAuditSensitiveRoleGranted (contract MGCWardenAuditSensitiveRoleGrantedContract).

  • Payload: RoleName, RoleAotName, TargetUserRef, ActionByRef, RecordedByRef, Source, AlertRecipients, RoleEventRecId, GrantedDateTime, Company.
  • Raised by MGCWardenAuditRoleCapture.sendSensitiveRoleEvent, which the class's comment states runs transaction-free: after recordEvent's commit and forwardToStore's.

Warden raises no business event for purges, erasure, the Sensitivity Register or the leaver intake itself. Those acts are recorded in the audit store and the governance event log.

4. Workflow​

Warden ships 15 workflow types. All are in the category MGCWardenCategory (module SystemAdministration) and have one approval element each. Every template:

  • names MGCWardenWorkflowConfigGuard as its ConfigDataChangeEventHandler;
  • names its own …WFEventHandler class for started, completed and canceled.

Every approval element has the same outcomes:

  • Approve is enabled.
  • Reject is enabled with outcome type Return, so a rejection returns the work item for correction.
  • Deny is disabled.
  • Request change is disabled.
Workflow type (template)Document (query)Document menu itemApproval elementWhat completion does
MGCWardenPolicyActivationTemplateMGCWardenPolicyActivationDocumentMGCWardenPolicyTableMGCWardenPolicyActivationApprovalActivates the version and supersedes its predecessor; also completes a retirement
MGCWardenSalesGovPolicyActivationTemplateMGCWardenSalesGovPolicyActivationDocumentMGCWardenSalesGovPolicyTableMGCWardenSalesGovPolicyActivationApprovalAs above
MGCWardenPriceGuardPolicyActivationTemplateMGCWardenPriceGuardPolicyActivationDocumentMGCWardenPriceGuardPolicyTableMGCWardenPriceGuardPolicyActivationApprovalAs above
MGCWardenJournalPolicyActivationTemplateMGCWardenJournalPolicyActivationDocumentMGCWardenJournalPolicyTableMGCWardenJournalPolicyActivationApprovalAs above
MGCWardenCountPolicyActivationTemplateMGCWardenCountPolicyActivationDocumentMGCWardenCountPolicyTableMGCWardenCountPolicyActivationApprovalAs above
MGCWardenRegisterActivationTemplateMGCWardenRegisterActivationDocumentMGCWardenAuditRegisterMGCWardenRegisterActivationElementActivates the register version under lock
MGCWardenDeltaApprovalTemplateMGCWardenDeltaApprovalDocumentMGCWardenDiffPanelMGCWardenDeltaApprovalElementRe-baselines the approved field classes and releases the delta holds
MGCWardenExcludedClassApprovalTemplateMGCWardenExcludedClassApprovalDocumentMGCWardenDiffSetInquiryMGCWardenExcludedClassApprovalElementReleases the holds
MGCWardenFirmingApprovalTemplateMGCWardenFirmingApprovalDocumentMGCWardenFirmingQueueMGCWardenFirmingApprovalElementApproves the firming request and releases the hold
MGCWardenSalesGovApprovalTemplateMGCWardenSalesGovApprovalDocumentMGCWardenReconfirmationTrackingMGCWardenSalesGovApprovalElementReleases the hold and stamps the approval
MGCWardenTAApprovalTemplateMGCWardenTAApprovalDocumentMGCWardenTAGatedJournalsMGCWardenTAApprovalElementClears the posting gate, stamps the approved content and releases the hold
MGCWardenJournalRevApprovalTemplateMGCWardenJournalRevApprovalDocumentMGCWardenJournalReviewQueueMGCWardenJournalRevApprovalElementLets the reversing journal post
MGCWardenJournalReviewTemplateMGCWardenJournalReviewDocumentMGCWardenJournalReviewQueueMGCWardenJournalReviewElementApproves at the routed step and releases
MGCWardenPurgeApprovalTemplateMGCWardenPurgeApprovalDocumentMGCWardenAuditPurgeWorkbenchMGCWardenPurgeApprovalElementRecords the proposal as Approved. The execution batch deletes later
MGCWardenErasureApprovalTemplateMGCWardenErasureApprovalDocumentMGCWardenErasureRequestsMGCWardenErasureApprovalElementCalls MGCWardenErasureRequestManager::accept, which records Approved, Deferred or Refused

How a workflow starts. None of the templates declares a Submit or Cancel menu item. Warden starts each workflow itself:

  • from a submit manager (MGCWarden…SubmitManager, one per type);
  • from the change route (MGCWardenChangeInterceptor);
  • from the route drains (MGCWardenDeltaRouteDrainBatch, MGCWardenFirmingRouteDrainBatch, MGCWardenTARouteDrainBatch, MGCWardenJournalRouteDrainBatch).

A retirement is approved through the family's existing activation workflow, started by MGCWardenRetirementSubmitManager. Configuring the workflows is covered in Getting started, under the workflow types, and the route drains in Route drains.

Approve-time gates. Every approve channel runs the same five gates, collected in MGCWardenApproveGateSet. The channels are the in-client Approve, the work item action manager and MGCWardenWorkItemService.approve. The gates are:

  • MGCWardenActivationSoDGate
  • MGCWardenDocumentSoDGate
  • MGCWardenSigningLimitCheck
  • MGCWardenApprovalStampGate
  • MGCWardenESignatureGate

See Security model.

5. Electronic Reporting​

Evidence packs can be rendered through Electronic Reporting:

  • MGCWardenAuditComplianceParameters.PackErFormatMappingId names the format, by relation to ERFormatMappingTable.RecId.
  • MGCWardenAuditPackErRenderer runs it over the data source contract MGCWardenAuditPackErContract.
  • The renderPack operation (§2.5) is the API route.

6. HR and leaver intake​

Warden learns that a person has left from two sources. The scan MGCWardenAuditDeprovisioning::run reads both. It is scheduled as a batch and reachable as runAuditDeprovisioning.

D365 Human resources. The scan reads HcmWorker, HcmEmployment (date-effective, read with full history), DirPersonUser and UserInfo. A worker whose latest employment has ended, in any legal entity, gets one Proposed MGCWardenAuditDeprovisioningEntry for each enabled user linked to their person, in the company of that employment. Each entry carries a snapshot of the user's enabled roles and an SLA date. No entry is raised where one already answers for that user and that leaving. Warden records the decision only. Disabling the user and removing roles is a manual act outside Warden, which the holder of MGCWardenDeprovisioningDispositionPriv then attests.

An external HR system, through OData. The external system writes to MGCWardenAuditLeaverIntakeEntity (WardenAuditLeaverIntakes, per company).

  • Writable fields: SourceSystem, SourceReference, PersonnelNumber and/or UserId, and LeavingDate.
  • Fields Warden writes: ImportedBy, ImportedDateTime, Status, StatusReason, StatusDateTime, MatchedUser, MatchedPersonnelNumber and DeprovisioningEntryRecordId. These are read-only through the entity (AllowEdit No).
  • Behavior:
    • The natural key is SourceSystem + SourceReference.
    • A resend that matches the stored record is discarded, and a resend that disagrees is refused.
    • Records cannot be deleted.
    • Set-based operations are off (SupportsSetBasedSqlOperations No).
    • A well-formed record that matches nobody is kept as Quarantined.
  • Integrity: each insert extends the company's hash chain, whose head is published with the audit store's anchors (§3.5).
  • Security: writing needs MGCWardenLeaverIntakePriv, which ships in no role. Grant it to a role made for the HR integration's own account, never to a person. See USER_GUIDE §12 and Security model.

Screenshot to add: the Leaver intake records page with one Quarantined and one Raised record.

7. Feature toggles​

Warden registers seven features with Feature management. All seven can be disabled (canDisable returns true).

ClassName in Feature managementModuleOn by default
MGCWardenOrderGuardFeatureWarden Order GuardProcurementAndSourcingNo
MGCWardenSalesGovFeatureWarden Sales GovernanceSalesAndMarketingNo
MGCWardenTradeAgreementGovFeatureWarden Trade Agreement GovernanceSalesAndMarketingYes
MGCWardenJournalGovFeatureWarden Journal GovernanceInventoryAndWarehouseManagementNo
MGCWardenCountGovFeatureWarden Count GovernanceInventoryAndWarehouseManagementNo
MGCWardenAuditFeatureWarden AuditorSystemAdministrationNo
MGCWardenAuditReportingFeatureWarden Evidence & ComplianceComplianceAndInternalControlsNo

The module names are FeatureModuleV0 values. What each toggle switches, and in what order to turn them on, is in Getting started, under the feature toggles, and in Configuration reference.

8. Licensing​

Warden checks its license with the Magicite licensing service. Past the block date on production, policy setup and new evidence packs stop; holds, approvals and audit capture carry on. See Configuration reference.

Warden counts how it is used, with no personal or business data, and the licensing service sends the counts to Magicite once a day. To stop it, set Usage telemetry enabled to No on System administration → Setup → Magicite → License parameters.

9. Standard modules Warden builds on​

Descriptor\MGCWarden.xml:

  • module MGCWarden, id 896000760, layer 8, version 0.1.0.0;
  • 25 module references, listed below.

"What Warden uses" was confirmed by searching the model for the named elements. Where nothing was confirmed, the row says so.

ModuleWhat Warden uses
ApplicationSuiteThe governed documents and their processes. Purchase (PurchTable, PurchLine, PurchFormLetter, purchase order confirmation and re-approval), sales and quotations (SalesTable, SalesLine, SalesQuotationTable, SalesFormLetter, CustConfirmJour), inventory journals (InventJournalTable, InventJournalCheckPost_Movement, InventJournalCopy, InventJournalCleanUp), trade agreements (PriceDiscAdmTable, PriceDiscAdmCheckPost), planned order firming (ReqTransPoMarkFirm), and warehouse cycle counting (WHSWorkLineCycleCount, WHSWorkExecute, WHSWorkExecuteDisplayCycleCount). Most are chain-of-command targets
ApplicationFoundationBusinessEventsBase and the business events framework; DocuRef
ApplicationPlatformSysDatabaseLog, read to correlate native database log rows (MGCWardenAuditProvenance::NativeDatabaseLog)
ElectronicReportingERFormatMappingTable and ERObjectsFactory, for evidence pack rendering (§5)
PersonnelCoreHcmWorker, HcmEmployment, for the leaver scan (§6)
DirectoryDirPersonUser, DirPartyTable
CaseManagementCaseDetail, through MGCWardenAuditCaseFiler, which files one native case per duplicate-requisition sweep finding
PolicyNot confirmed. SysPolicyRule exists in this module, but no use of it was found in the model
ApplicationCommon, ApplicationWorkspaces, CDSVirtualEntity, ContactPerson, Currency, Dimensions, FiscalBooks, GeneralLedger, InboundTransportationManagement, Ledger, Project, Retail, SourceDocumentation, SourceDocumentationTypes, Tax, UnitOfMeasure, UserSecGovNot confirmed. No direct use was traced on 2026-11-06. A reference may be needed only to compile against types that a used module exposes. Removing each reference in a scratch build would settle which ones are needed

Chain-of-command targets, from every [ExtensionOf(...)] in the model:

  • Classes: FormRun, FormletterService, FormletterServiceBatchTaskManager, InventJournalCheckPost_Movement, InventJournalCleanUp, InventJournalCopy, PriceDiscAdmCheckPost, PurchConfirmationRequestController, PurchFormLetter, PurchPurchaseOrderController, PurchReApprovalCompareRecordVersions, PurchReApprovalPolicyRuleFieldList, ReqTransPoMarkFirm, SalesConfirmController, SalesFormLetter, SalesLineType, SalesQuotationConfirmationController, SalesQuotationController, the three SalesQuotationEditLinesForm variants, SrsReportRunController, SysWorkflowApprovalWorkitemService, WHSWorkExecute, WHSWorkExecuteDisplay, WHSWorkExecuteDisplayCycleCount, WorkflowCancelManager, WorkflowWorkItem, WorkflowWorkItemActionManager.
  • Tables: CustConfirmJour, InventJournalTable, PriceDiscAdmTable, PurchLine, PurchTable, SalesLine, SalesTable, WHSWorkLineCycleCount.
  • Event subscriptions: ReqTransPoMarkFirm and SysWorkflowApprovalService.

Form extensions add Warden parts and buttons to six standard forms:

  • PriceDiscAdm;
  • PriceDiscAdmTable (MGCWardenTASubmitForApproval);
  • PurchTable (MGCWardenDiffDocumentPart, MGCWardenESignaturePurchPart);
  • SalesTable (the duplicate override buttons and MGCWardenDiffSalesDocumentPart);
  • SysUserManagement (MGCWardenAuditTimeline);
  • WorkflowWorkList (MGCWardenDiffWorkItemPart).

Unified Pricing Management journals (GUPPriceTermJournalTable, module GlobalUnifiedPricing) are reached by name at run time, like the licensing module, and are not a module reference.

10. Not confirmed​

  • Not confirmed: that a …Rejected event is raised inside the workflow runtime's transaction. The completed() and canceled() handlers say so in their comments; the Reject handler's context was not traced. Reading one Reject outcome handler would settle it.
  • Not confirmed: that started(), which raises the …Requested events, runs at ttsLevel 0 in every workflow type. The delta handler's comment says so; the platform's SysWorkflowQueue was not read.
  • Not confirmed: the transaction context of MGCWardenHoldReleased on the break-glass path. The approval-outcome path is confirmed.
  • Not confirmed: what Warden uses from 17 of the 25 referenced modules (§9).
  • Not confirmed: that an OData write to a policy line entity reaches the line table's validateWrite. The line entities have no validateWrite of their own and rely on the table's method. A live write past the block date on a production environment would settle it.