Employee Integration Events
Summary
The contracts assembly defines seven Employee integration-event records derived from a common IntegrationEvent base. The records are source-confirmed schemas; consumer support varies by event.
Audience
- Producers and consumer developers
- QA and contract-test engineers
- Solution architects
Reference Content
Common metadata
Every contract includes an event identifier, event type, occurrence time, optional correlation and causation identifiers, optional tenant and user identifiers, source service, and schema version. Employee mappings currently create schema version 1 records and identify Employee Service as the source.
Event-specific field categories
| Contract | Confirmed field categories |
|---|---|
EmployeeCreatedEvent | Employee identifiers, tenant references, employee code, profile/contact projection, organization assignments, status, joining date |
EmployeeUpdatedEvent | Employee identifiers, tenant references, employee code, profile/contact projection, organization assignments, status |
EmployeeDeletedEvent | Employee identifier and employee code |
ManagerChangedEvent | Employee identity plus previous and new manager identifiers |
DepartmentChangedEvent | Employee identity plus previous and new department identifiers |
EmploymentStatusChangedEvent | Employee/tenant projection plus previous and new status |
EmployeeTimelineEventRecordedEvent | Employee identity, timeline type, and description |
Some contracts can contain personal data. Consumers and observability systems must avoid logging raw payloads. This portal deliberately provides no populated payload examples.
Contract identity
The mapping creates a new integration EventId; it does not reuse the internal domain-event identifier. The employee identifier is placed in the mapping's correlation field, while causation, base tenant, and base user metadata are currently null. Tenant reference fields inside applicable Employee payloads remain separate from the nullable base tenant identifier.
Compatibility status
- Contract records and the version field are Foundation.
- A documented compatibility matrix and deprecation window are Not implemented.
- Whether consumers reject unknown schema versions Requires confirmation; inspected consumers parse selected fields rather than enforcing the base version.
Source References
microservices/src/contracts/Events/IntegrationEvent.csmicroservices/src/contracts/Events/EmployeeCreatedEvent.csmicroservices/src/contracts/Events/EmployeeUpdatedEvent.csmicroservices/src/contracts/Events/EmployeeDeletedEvent.csmicroservices/src/contracts/Events/ManagerChangedEvent.csmicroservices/src/contracts/Events/DepartmentChangedEvent.csmicroservices/src/contracts/Events/EmploymentStatusChangedEvent.csmicroservices/src/contracts/Events/EmployeeTimelineEventRecordedEvent.csmicroservices/src/employee-service/Infrastructure/EmployeeDbContext.cs
Related Articles
See Also
Keywords
- Shared event contracts
- Schema version
- Contract metadata
Revision Information
- Status: Draft
- Last reviewed: 2026-07-15
- Review cycle: Quarterly