Skip to main content

Leave Integration Events

Summary

Six exact shared contracts are produced by Leave Service at schema version 1 through the transactional outbox.

Audience

Producers, consumers, QA, architects, and contract-governance reviewers.

Reference Content

Exact contractPurpose/triggerConfirmed consumersContext/versionMaturitySource
LeaveRequestedEventAnnounce request creation and initial stateNoneNumeric tenant/employee context; correlation; version 1Direct production, Foundation consumptionmicroservices/src/contracts/Events/LeaveLifecycleEvents.cs
LeaveApprovedEventAnnounce direct, initial, or Workflow-completed approvalPayroll, NotificationTenant/employee/approver categories; correlation; version 1Transitionalmicroservices/src/contracts/Events/LeaveLifecycleEvents.cs
LeaveRejectedEventAnnounce direct or Workflow-completed rejectionPayroll, NotificationTenant/employee/rejection categories; correlation; version 1Transitionalmicroservices/src/contracts/Events/LeaveLifecycleEvents.cs
LeaveCancelledEventAnnounce request cancellationPayrollTenant/employee/date/type/unit categories; correlation; version 1Transitionalmicroservices/src/contracts/Events/LeaveLifecycleEvents.cs
LeaveBalanceUpdatedEventAnnounce balance mutationNoneTenant/user/period/balance categories; correlation; version 1Direct production, Foundation consumptionmicroservices/src/contracts/Events/LeaveLifecycleEvents.cs
LeaveEncashedEventAnnounce encashment aggregate creationNoneTenant/user/period/units/optional amount category; version 1Foundationmicroservices/src/contracts/Events/LeaveLifecycleEvents.cs

All contracts inherit the shared IntegrationEvent envelope: event identity/type/time, optional correlation/causation and cross-service tenant/user context, source service, and schema version. The Leave mapping creates new integration IDs, uses version 1, supplies correlation, leaves causation absent, and carries numeric Leave identity context in contract-specific fields. Compatibility consumers must tolerate new-record identifiers documented by the contract source.

Source References

  • microservices/src/contracts/Events/IntegrationEvent.cs
  • microservices/src/contracts/Events/LeaveLifecycleEvents.cs
  • microservices/src/leave-service/Infrastructure/LeaveDbContext.cs
  • microservices/src/payroll-service/Messaging/PayrollReadModelConsumer.cs
  • microservices/src/notification-service/Application/EventNotificationResolver.cs

See Also

Keywords

  • Integration contracts
  • Schema version 1
  • Leave lifecycle

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-15
  • Review cycle: Quarterly