Skip to main content

Employee Organization Change Events

Summary

Employee Service defines dedicated events for reporting-manager and department assignment changes. No downstream subscriber for either event was confirmed.

Audience

  • Developers, architects, QA engineers, and organization-domain reviewers

Overview

ChangeManager and ChangeDepartment compare the incoming identifier with current state. A real change updates the aggregate, appends a timeline entry, and raises a dedicated event containing the previous and new identifiers. A no-op request emits nothing.

Organization-change flow

Manager change

The aggregate rejects a self-reporting assignment. The domain and integration contracts carry Employee identity and previous/new manager identifiers. The method does not raise EmployeeUpdatedDomainEvent.

Department change

The domain and integration contracts carry Employee identity and previous/new department identifiers. The method does not raise EmployeeUpdatedDomainEvent.

Boundary with Organization

The reviewed Employee Service source owns these assignment references. It does not establish that Organization Service publishes or consumes the dedicated events. Cross-service ownership, synchronization, and handling of deleted organization records Require confirmation.

Source References

  • microservices/src/employee-service/Domain/Employees/Employee.cs
  • microservices/src/employee-service/Infrastructure/EmployeeDbContext.cs
  • microservices/src/contracts/Events/ManagerChangedEvent.cs
  • microservices/src/contracts/Events/DepartmentChangedEvent.cs
  • microservices/src/employee-service/Application/Commands/EmployeeApplicationCommands.cs

See Also

Keywords

  • Manager assignment event
  • Department assignment event
  • Organization boundary

Revision Information

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