Skip to main content

Lifecycle-to-Contract Mapping

Summary

This is the authoritative one-row-per-transition mapping from lifecycle action to domain event, contract, producer and confirmed requested-scope consumers.

Audience

Product owners, architects, integration engineers, QA, and support teams.

Reference Content

#Business transitionDomain eventContractProducerConfirmed requested-scope consumer
1Candidate appliesCandidateAppliedDomainEventCandidateAppliedRecruitmentNone
2Interview scheduledInterviewScheduledDomainEventInterviewScheduledRecruitmentNone
3Offer generatedOfferGeneratedDomainEventOfferGeneratedRecruitmentNone
4Offer createdOfferCreatedDomainEventOfferCreatedRecruitmentNone
5Offer approvedOfferApprovedDomainEventOfferApprovedRecruitmentNone
6Offer acceptedOfferAcceptedDomainEventOfferAcceptedRecruitmentNone
7Offer rejectedOfferRejectedDomainEventOfferRejectedRecruitmentNone
8Offer declinedOfferDeclinedDomainEventOfferDeclinedRecruitmentNone
9Offer withdrawnOfferWithdrawnDomainEventNoneRecruitmentNone
10Onboarding completedCandidateOnboardedDomainEventCandidateOnboardedRecruitmentNone
11Candidate marked joinedCandidateJoinedDomainEventCandidateJoinedRecruitmentNone
12Joining reminder createdJoiningReminderDomainEventJoiningReminderRecruitmentNone
13Employee createdEmployeeCreatedDomainEventEmployeeCreatedEmployeePayroll, Leave, Notification
14Employee updatedEmployeeUpdatedDomainEventEmployeeUpdatedEmployeePayroll, Leave
15Employee marked deletedEmployeeDeletedDomainEventEmployeeDeletedEmployeeNone
16Manager changedManagerChangedDomainEventManagerChangedEmployeeNone
17Department changedDepartmentChangedDomainEventDepartmentChangedEmployeeNone
18Employment status changedEmploymentStatusChangedDomainEventEmploymentStatusChangedEmployeePayroll, Leave
19Timeline event explicitly recordedEmployeeTimelineEventRecordedDomainEventEmployeeTimelineEventRecordedEmployeeNone

Employee provisioning between rows 10/11 and 13 is synchronous HTTP, not a contract consumption path. No exit transition has a mapped event.

Requires confirmation

Unless explicitly confirmed above, live delivery, consumer deployment, replay, reconciliation, retention, contract governance, monitoring and production ownership require confirmation.

Source References

  • microservices/src/recruitment-service/Infrastructure/RecruitmentDbContext.cs
  • microservices/src/employee-service/Infrastructure/EmployeeDbContext.cs
  • microservices/src/recruitment-service/Application/Commands/OnboardingCommands.cs

See Also

Keywords

  • Onboarding events
  • Offboarding events
  • Integration contracts

Revision Information

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