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
:
MGCWardenPolicyEntityMGCWardenSalesGovPolicyEntityMGCWardenPriceGuardPolicyEntityMGCWardenJournalPolicyEntityMGCWardenCountPolicyEntityMGCWardenAuditRegisterEntryEntity, 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.
| Entity | Collection | Company | Granted by |
|---|---|---|---|
MGCWardenPolicyEntity | WardenGuardPolicies | per company | MGCWardenGovConfigEntityPriv (CRUD) |
MGCWardenPolicyScopeEntity | WardenGuardPolicyScopes | per company | MGCWardenGovConfigEntityPriv (CRUD) |
MGCWardenFieldMatrixLineEntity | WardenFieldMatrixLines | per company | MGCWardenGovConfigEntityPriv (CRUD) |
MGCWardenSalesGovPolicyEntity | WardenSalesGovPolicies | per company | MGCWardenSalesGovPolicyEntityPriv (CRUD) |
MGCWardenSalesGovThresholdEntity | WardenSalesGovThresholds | per company | MGCWardenSalesGovPolicyEntityPriv (CRUD) |
MGCWardenPriceGuardPolicyEntity | WardenPriceGuardPolicies | per company | MGCWardenGovConfigEntityPriv (CRUD) |
MGCWardenPriceGuardScopeEntity | WardenPriceGuardScopes | per company | MGCWardenGovConfigEntityPriv (CRUD) |
MGCWardenJournalPolicyEntity | WardenJournalPolicies | per company | MGCWardenGovConfigEntityPriv (CRUD) |
MGCWardenJournalPolicyBandEntity | WardenJournalPolicyBands | per company | MGCWardenGovConfigEntityPriv (CRUD) |
MGCWardenCountPolicyEntity | WardenCountPolicies | per company | MGCWardenGovConfigEntityPriv (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)
| Entity | Collection | Company | Granted by |
|---|---|---|---|
MGCWardenParametersEntity | WardenGuardParameters | per company | MGCWardenGovConfigEntityPriv (CRUD) |
MGCWardenCountParametersEntity | WardenCountParameters | per company | MGCWardenGovConfigEntityPriv (CRUD) |
MGCWardenSigningLimitEntity | WardenSigningLimits | per company | MGCWardenGovConfigEntityPriv (CRUD) |
MGCWardenReapprovalExclusionEntity | WardenReapprovalExclusions | per company | MGCWardenGovConfigEntityPriv (CRUD) |
MGCWardenDeviceUserMapEntity | WardenDeviceUserMaps | per company | MGCWardenGovConfigEntityPriv (CRU) |
1.3 Audit configuration
| Entity | Collection | Company | Access | Granted by |
|---|---|---|---|---|
MGCWardenAuditParametersEntity | WardenAuditParameters | shared | writable | MGCWardenAuditConfigEntityPriv (CRUD) |
MGCWardenAuditComplianceParametersEntity | WardenAuditComplianceParameters | per company | writable | MGCWardenAuditConfigEntityPriv (CRUD) |
MGCWardenAuditRegisterEntryEntity | WardenAuditRegisterEntries | shared | writable; license gate | MGCWardenAuditConfigEntityPriv (CRUD) |
MGCWardenAuditRegisterColumnEntity | WardenAuditRegisterColumns | shared | writable | MGCWardenAuditConfigEntityPriv (CRUD) |
MGCWardenAuditRetentionClassEntity | WardenAuditRetentionClasses | shared | writable | MGCWardenAuditConfigEntityPriv (CRUD) |
MGCWardenAuditHealthRuleEntity | WardenAuditHealthRules | shared | writable | MGCWardenAuditConfigEntityPriv (CRUD) |
MGCWardenAuditSensitiveRoleEntity | WardenAuditSensitiveRoles | per company | writable | MGCWardenAuditConfigEntityPriv (CRUD) |
MGCWardenAuditPackTemplateEntity | WardenAuditPackTemplates | per company | writable | MGCWardenAuditConfigEntityPriv (CRUD) |
MGCWardenAuditCatalogEntryEntity | WardenAuditCatalogEntries | shared | read-only | MGCWardenAuditConfigEntityPriv (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.
| Entity | Collection | Company | Granted by |
|---|---|---|---|
MGCWardenHoldEntity | WardenGovernanceHolds | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenDiffSetEntity | WardenChangeDiffSets | per company | MGCWardenAuditEvidenceEntityPriv |
MGCWardenDiffLineEntity | WardenChangeDiffLines | per company | MGCWardenAuditEvidenceEntityPriv |
MGCWardenEventLogEntity | WardenGovernanceEvents | per company | MGCWardenAuditEvidenceEntityPriv |
MGCWardenESignatureEntity | WardenElectronicSignatures | per company | MGCWardenESignatureEntityPriv |
MGCWardenExecutionExceptionEntity | WardenExecutionExceptions | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenFieldBaselineEntity | WardenFieldApprovalBaselines | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenFirmingRequestEntity | WardenFirmingApprovalRequests | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenSalesGovStateEntity | WardenSalesGovernanceStates | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenJournalGovStateEntity | WardenJournalGovernanceStates | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenTAGateStateEntity | WardenTradeAgreementGateStates | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenDuplicateOverrideEntity | WardenDuplicateOverrides | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenSetupGapSnapshotEntity | WardenSetupGapSnapshots | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenSimulationRunEntity | WardenGuardPolicySimulationRuns | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenSimulationLineEntity | WardenGuardPolicySimulationLines | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenSalesGovSweepRunEntity | WardenSalesGovernanceSweepRuns | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenSalesGovSweepLineEntity | WardenSalesGovernanceSweepLines | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenTAGovSweepRunEntity | WardenTradeAgreementApprovalSweepRuns | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenTAGovSweepLineEntity | WardenTradeAgreementApprovalSweepLines | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenDuplicateSweepRunEntity | WardenDuplicateRequisitionSweepRuns | per company | MGCWardenGuardEvidenceEntityPriv |
1.6 Count governance (read-only)
| Entity | Collection | Company | Granted by |
|---|---|---|---|
MGCWardenCountCaseEntity | WardenCountCases | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenCountLineageEntity | WardenCountLineages | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenCountJournalQueueEntity | WardenCountJournalQueueEntries | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenMissingQueueEntryEntity | WardenMissingQueueEntries | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenCountWorkerLogEntity | WardenCountWorkerLogEntries | per company | MGCWardenGuardEvidenceEntityPriv |
MGCWardenCountKPIEntity | WardenCountKPIs | per company | MGCWardenCountKPIEntityPriv |
MGCWardenCountMissingKPIEntity | WardenCountMissingKPIs | per company | MGCWardenCountKPIEntityPriv |
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)
| Entity | Collection | Company | Granted by |
|---|---|---|---|
MGCWardenAuditQueueEntity | WardenAuditQueueEntries | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditEventEntity | WardenAuditEvents | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditDetailParamEntity | WardenAuditDetailParameters | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditHashAnchorEntity | WardenAuditHashAnchors | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditAnchorReconciliationEntity | WardenAuditAnchorReconciliations | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditVerificationRunEntity | WardenAuditVerificationRuns | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditDropTallyEntity | WardenAuditDropTallies | shared | MGCWardenAuditOperationalEntityPriv |
MGCWardenAuditHealthAlertEntity | WardenAuditHealthAlerts | shared | MGCWardenAuditOperationalEntityPriv |
MGCWardenAuditPurgeProposalEntity | WardenAuditPurgeProposals | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditPurgeExclusionEntity | WardenAuditPurgeExclusions | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditPurgeProposalRunEntity | WardenAuditPurgeProposalRuns | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditPurgeCertificateEntity | WardenAuditPurgeCertificates | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditExportManifestEntity | WardenAuditExportManifests | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditRoleEventEntity | WardenAuditRoleEvents | per company | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditDeprovisioningEntryEntity | WardenAuditDeprovisioningEntries | per company | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditPackRunEntity | WardenAuditPackRuns | per company | MGCWardenAuditEvidenceEntityPriv |
MGCWardenAuditPackSectionEntity | WardenEvidencePackSections | per company | MGCWardenAuditEvidenceEntityPriv |
MGCWardenErasureRequestEntity | WardenErasureRequests | shared | MGCWardenAuditEvidenceEntityPriv |
MGCWardenErasureCertificateEntity | WardenErasureCertificates | shared | MGCWardenAuditEvidenceEntityPriv |
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:
MGCWardenCustReqIndexMGCWardenAuditFieldExposureMGCWardenAuditRoleSnapshotMGCWardenRetirementRequestMGCWardenIdentityVaultMGCWardenAuditLeaverIntakeChainHeadMGCWardenIdentityCutover
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)
| Operation | Who may call |
|---|---|
approve, reject, delegate | MGCWardenControlsOwner and MGCWardenGuardAdministrator, through the 15 approval privileges (one per workflow type) |
resubmit | The 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)
| Operation | Who may call |
|---|---|
submitGuardPolicy, submitSalesGovPolicy, submitJournalPolicy, submitPriceGuardPolicy, submitCountPolicy | MGCWardenGuardAdministrator |
submitRegisterEntry | MGCWardenAuditAdministrator |
newGuardPolicyVersion, newSalesGovPolicyVersion, newJournalPolicyVersion, newPriceGuardPolicyVersion, newCountPolicyVersion | MGCWardenGuardAdministrator |
simulateGuardPolicy | MGCWardenGuardAdministrator |
requestGuardPolicyRetirement, requestSalesGovPolicyRetirement, requestJournalPolicyRetirement, requestPriceGuardPolicyRetirement, requestCountPolicyRetirement | MGCWardenGuardAdministrator |
requestRegisterEntryRetirement | MGCWardenAuditAdministrator |
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)
| Operation | Who may call |
|---|---|
releaseHold (break-glass) | No role |
takeException, retryException, dismissException | MGCWardenControlsOwner, MGCWardenGuardAdministrator |
submitDeltaRoute, submitExcludedClassRoute, submitFirmingRoute, submitSalesGovRoute | MGCWardenGuardAdministrator |
takeReconfirmation | MGCWardenControlsOwner, MGCWardenGuardAdministrator |
submitJournalReview, submitJournalReversal, submitTradeAgreementJournal | MGCWardenControlsOwner |
registerDuplicateOverride | No role |
2.4 MGCWardenCountOperationsService (8 operations)
| Operation | Who may call |
|---|---|
takeCase, acceptCase, recountCase, quarantineCase, proposeWriteOff, proposeResolve, resolveToStock | MGCWardenCountSupervisor |
writeOff | No role |
2.5 MGCWardenAuditOperationsService (14 operations)
| Operation | Who may call |
|---|---|
enrollFromCatalog | MGCWardenAuditAdministrator |
attestDeprovisioning, exceptDeprovisioning, takeDeprovisioning, assignDeprovisioning | No role |
exportPack, renderPack | MGCWardenAuditAdministrator |
submitPurgeProposal, reviewHealthAlert, evaluateAuditHealth | MGCWardenAuditAdministrator |
raiseErasureRequest, submitErasureRequest | MGCWardenIdentityResolver |
verifyAuditStoreReconstruction | MGCWardenAuditor |
withdrawLeaverIntake | No role |
2.6 MGCWardenBatchService (27 operations)
Each operation runs one Warden batch class now, through the same menu item a user would press.
| Operation | Runs | Who may call |
|---|---|---|
runInitialize | MGCWardenInitializeMenuItem | MGCWardenGuardAdministrator |
runRetentionCleanup | MGCWardenRetentionCleanup | MGCWardenGuardAdministrator |
runBreakGlassExpiry | MGCWardenBreakGlassExpiryBatch | MGCWardenGuardAdministrator |
runDeltaRouteDrain, runFirmingRouteDrain, runTARouteDrain, runJournalRouteDrain | MGCWardenDeltaRouteDrainBatch, MGCWardenFirmingRouteDrainBatch, MGCWardenTARouteDrainBatch, MGCWardenJournalRouteDrainBatch | MGCWardenGuardAdministrator |
runSetupGapSnapshot | MGCWardenSetupGapSnapshotBatch | MGCWardenGuardAdministrator |
runDuplicateSweep, runSalesGovSweep, runTAGovSweep | MGCWardenDuplicateSweepBatch, MGCWardenSalesGovSweep, MGCWardenTAGovSweep | MGCWardenControlsOwner |
runCountConsolidation, runMissingMonitor, runCountRetention | MGCWardenCountConsolidationRun, MGCWardenMissingQueueMonitor, MGCWardenCountRetention | MGCWardenGuardAdministrator |
runAuditWriter, runAuditIngestion, runAuditRoleCapture, runAuditRoleRetention, runAuditIntegrity, runAuditHealth | MGCWardenAuditWriter, MGCWardenAuditGuardIngestion, MGCWardenAuditRoleCapture, MGCWardenAuditRoleEventRetention, MGCWardenAuditIntegrityBatch, MGCWardenAuditHealthBatch | MGCWardenAuditAdministrator |
runAuditDeprovisioning, runDeprovisioningOverdueMonitor | MGCWardenAuditDeprovisioning, MGCWardenDeprovisioningOverdueMonitor | MGCWardenAuditAdministrator |
runAuditPackBuilder | MGCWardenAuditPackBuilder | MGCWardenAuditAdministrator, MGCWardenAuditor |
runAuditPurgePropose | MGCWardenAuditPurgeProposalGenerator | MGCWardenAuditAdministrator |
runAuditPurgeExecute | MGCWardenAuditPurgeExecutionBatch | MGCWardenAuditAdministrator |
runErasureExecute | MGCWardenErasureExecutionBatch | MGCWardenIdentityResolver |
runAuditCatalogSeed | MGCWardenAuditCatalogSeedMenuItem | MGCWardenAuditAdministrator |
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,withdrawLeaverIntakeand 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:
| Switch | Covers |
|---|---|
MGCWardenParameters.BusinessEventsEnabled | Guard, approval, policy, hold and exception events, and MGCWardenAuditAnchorPublished |
MGCWardenCountParameters.BusinessEventsEnabled | The count events, including MGCWardenCountPolicyActivated and MGCWardenCountPolicyRetired |
MGCWardenAuditComplianceParameters.BusinessEventsEnabled | MGCWardenAuditSensitiveRoleGranted |
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.
| Family | Events | Raised by |
|---|---|---|
| Purchase delta and excluded class | MGCWardenDeltaApprovalRequested, MGCWardenDeltaApproved, MGCWardenDeltaRejected, MGCWardenDeltaCancelled | MGCWardenDeltaApprovalWFEventHandler, MGCWardenExcludedClassApprovalWFEventHandler |
| Planned order firming | MGCWardenFirmingApprovalRequested, MGCWardenFirmingApproved, MGCWardenFirmingRejected, MGCWardenFirmingCancelled | MGCWardenFirmingApprovalWFEventHandler |
| Journal reversal and banded review | MGCWardenJournalGovApprovalRequested, MGCWardenJournalGovApproved, MGCWardenJournalGovRejected, MGCWardenJournalGovCancelled | MGCWardenJournalRevApprovalWFEventHandler, MGCWardenJournalReviewWFEventHandler |
| Sales governance | MGCWardenSalesGovApprovalRequested, MGCWardenSalesGovApproved, MGCWardenSalesGovRejected, MGCWardenSalesGovCancelled | MGCWardenSalesGovApprovalWFEventHandler |
| Sales governance, Warn posture | MGCWardenSalesGovBreachWarned | MGCWardenSalesEvaluationEngine.recordWarnedBreach |
| Trade agreement | MGCWardenTAApprovalRequested, MGCWardenTAApproved, MGCWardenTARejected, MGCWardenTACancelled | MGCWardenTAApprovalWFEventHandler |
When each kind of event is raised:
…Requestedis raised from the handler'sstarted(). The delta handler's comment calls this "the first transaction-free moment", and the only point where "an approval was requested" is certainly true.…Approvedis raised fromcompleted(), inside the workflow runtime's completion transaction (SysWorkflowQueue::workflowCompleted), as the handlers' comments record. It commits with the release it announces.…Cancelledis raised fromcanceled(). The handlers' comments place this inside the workflow runtime's transaction.…Rejectedis raised from the Reject outcome's handler. A rejection returns the work item to its originator; the hold stands.MGCWardenSalesGovBreachWarnedis raised insiderecordWarnedBreach's own transaction, with the Warn row it announces. No hold or approval follows.
3.2 Policy activated and retired (10 events)
| Event | Contract and payload | Raised by |
|---|---|---|
MGCWardenPolicyActivated | MGCWardenPolicyActivatedContract: PolicyCode, PolicyVersion, DocumentFamily, Company, ActorRef | MGCWardenPolicyActivationWFEventHandler.completed |
MGCWardenSalesGovPolicyActivated | MGCWardenSalesGovPolicyActivatedContract: PolicyCode, PolicyVersion, PolicyFamily, Company, ActorRef | MGCWardenSalesGovPolicyActivationWFEventHandler.completed |
MGCWardenPriceGuardPolicyActivated | MGCWardenPriceGuardPolicyActivatedContract: same members as above | MGCWardenPriceGuardPolicyActivationWFEventHandler.completed |
MGCWardenJournalPolicyActivated | MGCWardenJournalPolicyActivatedContract: same members as above | MGCWardenJournalPolicyActivationWFEventHandler.completed |
MGCWardenCountPolicyActivated | MGCWardenCountPolicyActivatedContract: same members as above | MGCWardenCountPolicyActivationWFEventHandler.completed |
MGCWardenPolicyRetired, MGCWardenSalesGovPolicyRetired, MGCWardenPriceGuardPolicyRetired, MGCWardenJournalPolicyRetired, MGCWardenCountPolicyRetired | MGCWardenPolicyRetiredContract: PolicyCode, PolicyVersion, PolicyFamily, DocumentFamily, Company, ActorRef | MGCWardenRetirementManager.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)
| Event | Contract and payload | Raised by, and when |
|---|---|---|
MGCWardenHoldPlaced | MGCWardenHoldPlacedContract: HoldId, DocumentKey, HoldType, PolicyCode, Company, ActorRef | MGCWardenHoldManager.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 |
MGCWardenHoldReleased | MGCWardenHoldReleasedContract: HoldId, DocumentKey, ReleaseReason, BreakGlass, Company, ActorRef | MGCWardenHoldManager.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 |
MGCWardenExecutionExceptionCreated | MGCWardenExecutionExceptionCreatedContract: ExceptionId, Area, Reason, Severity, DocumentKey, Company | MGCWardenExecutionExceptionManager (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)
| Event | Contract | Raised by, and when |
|---|---|---|
MGCWardenCountCaseCreated | MGCWardenCountCaseEventContract | MGCWardenCountCaseService.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, MGCWardenCountWriteOff | MGCWardenCountCaseEventContract | MGCWardenCountCaseService.sendOutcomeEventInner, called from applyOutcome only after its ttscommit returned |
MGCWardenCountCaseResolved | MGCWardenCountCaseEventContract | MGCWardenMissingResolveService.sendResolvedEvent, after resolveToStock's commit |
MGCWardenCountJournalCreated | MGCWardenCountJournalEventContract | MGCWardenCountConsolidationRun.consolidateGroup, after its commit, on a batch stack at ttsLevel 0 |
MGCWardenCountJournalPosted | MGCWardenCountJournalEventContract | MGCWardenCountConsolidationRun.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.sendAnchorBusinessEventruns after the anchor's ownttscommit.mirrorLeaverIntakeHeadruns 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: afterrecordEvent's commit andforwardToStore'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
MGCWardenWorkflowConfigGuardas itsConfigDataChangeEventHandler; - names its own
…WFEventHandlerclass 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 item | Approval element | What completion does |
|---|---|---|---|---|
MGCWardenPolicyActivationTemplate | MGCWardenPolicyActivationDocument | MGCWardenPolicyTable | MGCWardenPolicyActivationApproval | Activates the version and supersedes its predecessor; also completes a retirement |
MGCWardenSalesGovPolicyActivationTemplate | MGCWardenSalesGovPolicyActivationDocument | MGCWardenSalesGovPolicyTable | MGCWardenSalesGovPolicyActivationApproval | As above |
MGCWardenPriceGuardPolicyActivationTemplate | MGCWardenPriceGuardPolicyActivationDocument | MGCWardenPriceGuardPolicyTable | MGCWardenPriceGuardPolicyActivationApproval | As above |
MGCWardenJournalPolicyActivationTemplate | MGCWardenJournalPolicyActivationDocument | MGCWardenJournalPolicyTable | MGCWardenJournalPolicyActivationApproval | As above |
MGCWardenCountPolicyActivationTemplate | MGCWardenCountPolicyActivationDocument | MGCWardenCountPolicyTable | MGCWardenCountPolicyActivationApproval | As above |
MGCWardenRegisterActivationTemplate | MGCWardenRegisterActivationDocument | MGCWardenAuditRegister | MGCWardenRegisterActivationElement | Activates the register version under lock |
MGCWardenDeltaApprovalTemplate | MGCWardenDeltaApprovalDocument | MGCWardenDiffPanel | MGCWardenDeltaApprovalElement | Re-baselines the approved field classes and releases the delta holds |
MGCWardenExcludedClassApprovalTemplate | MGCWardenExcludedClassApprovalDocument | MGCWardenDiffSetInquiry | MGCWardenExcludedClassApprovalElement | Releases the holds |
MGCWardenFirmingApprovalTemplate | MGCWardenFirmingApprovalDocument | MGCWardenFirmingQueue | MGCWardenFirmingApprovalElement | Approves the firming request and releases the hold |
MGCWardenSalesGovApprovalTemplate | MGCWardenSalesGovApprovalDocument | MGCWardenReconfirmationTracking | MGCWardenSalesGovApprovalElement | Releases the hold and stamps the approval |
MGCWardenTAApprovalTemplate | MGCWardenTAApprovalDocument | MGCWardenTAGatedJournals | MGCWardenTAApprovalElement | Clears the posting gate, stamps the approved content and releases the hold |
MGCWardenJournalRevApprovalTemplate | MGCWardenJournalRevApprovalDocument | MGCWardenJournalReviewQueue | MGCWardenJournalRevApprovalElement | Lets the reversing journal post |
MGCWardenJournalReviewTemplate | MGCWardenJournalReviewDocument | MGCWardenJournalReviewQueue | MGCWardenJournalReviewElement | Approves at the routed step and releases |
MGCWardenPurgeApprovalTemplate | MGCWardenPurgeApprovalDocument | MGCWardenAuditPurgeWorkbench | MGCWardenPurgeApprovalElement | Records the proposal as Approved. The execution batch deletes later |
MGCWardenErasureApprovalTemplate | MGCWardenErasureApprovalDocument | MGCWardenErasureRequests | MGCWardenErasureApprovalElement | Calls 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:
MGCWardenActivationSoDGateMGCWardenDocumentSoDGateMGCWardenSigningLimitCheckMGCWardenApprovalStampGateMGCWardenESignatureGate
See Security model.
5. Electronic Reporting
Evidence packs can be rendered through Electronic Reporting:
MGCWardenAuditComplianceParameters.PackErFormatMappingIdnames the format, by relation toERFormatMappingTable.RecId.MGCWardenAuditPackErRendererruns it over the data source contractMGCWardenAuditPackErContract.- The
renderPackoperation (§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,PersonnelNumberand/orUserId, andLeavingDate. - Fields Warden writes:
ImportedBy,ImportedDateTime,Status,StatusReason,StatusDateTime,MatchedUser,MatchedPersonnelNumberandDeprovisioningEntryRecordId. These are read-only through the entity (AllowEditNo). - 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 (
SupportsSetBasedSqlOperationsNo). - A well-formed record that matches nobody is kept as
Quarantined.
- The natural key is
- 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).
| Class | Name in Feature management | Module | On by default |
|---|---|---|---|
MGCWardenOrderGuardFeature | Warden Order Guard | ProcurementAndSourcing | No |
MGCWardenSalesGovFeature | Warden Sales Governance | SalesAndMarketing | No |
MGCWardenTradeAgreementGovFeature | Warden Trade Agreement Governance | SalesAndMarketing | Yes |
MGCWardenJournalGovFeature | Warden Journal Governance | InventoryAndWarehouseManagement | No |
MGCWardenCountGovFeature | Warden Count Governance | InventoryAndWarehouseManagement | No |
MGCWardenAuditFeature | Warden Auditor | SystemAdministration | No |
MGCWardenAuditReportingFeature | Warden Evidence & Compliance | ComplianceAndInternalControls | No |
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.
| Module | What Warden uses |
|---|---|
| ApplicationSuite | The 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 |
| ApplicationFoundation | BusinessEventsBase and the business events framework; DocuRef |
| ApplicationPlatform | SysDatabaseLog, read to correlate native database log rows (MGCWardenAuditProvenance::NativeDatabaseLog) |
| ElectronicReporting | ERFormatMappingTable and ERObjectsFactory, for evidence pack rendering (§5) |
| PersonnelCore | HcmWorker, HcmEmployment, for the leaver scan (§6) |
| Directory | DirPersonUser, DirPartyTable |
| CaseManagement | CaseDetail, through MGCWardenAuditCaseFiler, which files one native case per duplicate-requisition sweep finding |
| Policy | Not 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, UserSecGov | Not 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 threeSalesQuotationEditLinesFormvariants,SrsReportRunController,SysWorkflowApprovalWorkitemService,WHSWorkExecute,WHSWorkExecuteDisplay,WHSWorkExecuteDisplayCycleCount,WorkflowCancelManager,WorkflowWorkItem,WorkflowWorkItemActionManager. - Tables:
CustConfirmJour,InventJournalTable,PriceDiscAdmTable,PurchLine,PurchTable,SalesLine,SalesTable,WHSWorkLineCycleCount. - Event subscriptions:
ReqTransPoMarkFirmandSysWorkflowApprovalService.
Form extensions add Warden parts and buttons to six standard forms:
PriceDiscAdm;PriceDiscAdmTable(MGCWardenTASubmitForApproval);PurchTable(MGCWardenDiffDocumentPart,MGCWardenESignaturePurchPart);SalesTable(the duplicate override buttons andMGCWardenDiffSalesDocumentPart);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
…Rejectedevent is raised inside the workflow runtime's transaction. Thecompleted()andcanceled()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…Requestedevents, runs at ttsLevel 0 in every workflow type. The delta handler's comment says so; the platform'sSysWorkflowQueuewas not read. - Not confirmed: the transaction context of
MGCWardenHoldReleasedon 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 novalidateWriteof their own and rely on the table's method. A live write past the block date on a production environment would settle it.