Employee Validation Reference
Summary
This matrix separates client checks, extracted application validation, and domain invariants.
Audience
- Developers, QA/support engineers, HR administrators, and product owners
Reference Content
| Field/concept | Rule | Layer | Error category | Maturity |
|---|---|---|---|---|
| Name | Required | UI and extracted validator/value object | Required/invalid name | Implemented |
| Required and basic format; tenant uniqueness on service | UI/application/repository | Invalid/duplicate | Transitional parity | |
| Employee code | Required and tenant-unique in extracted service | Application/value object | Required/duplicate | Implemented service |
| Department | If set, must exist and be active | Application | Invalid reference | Implemented service |
| Designation | Active; create validates selected department relationship | Application | Invalid/mismatched reference | Implemented service |
| Manager | Active and not the employee | Application/domain | Invalid/self-manager | Implemented service |
| Tenant | Required for commands | Application/context | Missing tenant | Implemented |
| Status | Must parse to extracted Employee status | Application | Invalid status | Implemented service |
| UI password | Manual initial temporary value has minimum length | UI | Invalid temporary password | Current UI |
| Compensation | Positive annual or hourly value | UI | Required compensation | Current UI |
| Document reference | Type/name required; nonnegative size | Application/domain | Required/invalid size | Implemented service |
Monolith validation text and extracted-service validation are not assumed identical.
Source References
UI/salary-ui/apps/client-hrms-portal/src/pages/Labor.tsxmicroservices/src/employee-service/Application/Validators/EmployeeCommandValidators.csmicroservices/src/employee-service/Domain/Common/ValueObjects.cs
Related Articles
See Also
Keywords
- Employee validation
- reference integrity
- duplicate checks
Revision Information
- Status: Draft
- Last reviewed: 2026-07-15
- Review cycle: Quarterly