Canonical documentation for the Tasks subsystem — routine tasks assigned to employees, and predefined (onboarding) task templates that seed a new hire's checklist.
Source of truth:
core-backend-servicesource (TaskService.cs1,351 lines + 27 endpoints) plus a live pass (Playwright, "Pade Demo" tenant, 2026-07-20; screenshots).
The module has exactly the two halves Task.md names — "employee + predefined workflows":
EmployeeTask) — a person, a description, a due date, a status.PredefinedTask with IsForOnboarding) — reusable templates applied to new hires.Start with surface-map.md.
| Doc | Audience | What it answers | Status |
|---|---|---|---|
| surface-map.md | Everyone | Inventory, the two task types, routes | ✅ Done 2026-07-20 |
| business.md | PMs, QA, Support, HR | What it is — routine vs onboarding, status/state | ✅ Done 2026-07-20 |
| technical.md | Engineers | The model, status vs state, onboarding tie | ✅ Done 2026-07-20 |
| configuration.md | Admins, HR | Create routine + onboarding tasks | ✅ Done 2026-07-20 |
| glossary.md | Everyone | Data dictionary | ✅ Done 2026-07-20 |
| api-reference.md | Engineers | The endpoint surface | ✅ Done 2026-07-20 |
| user-journey.md | PMs, UX, Support | Admin, employee, new-hire journeys | ✅ Done 2026-07-20 |
| how-to.md | Admins, employees | Create, assign, complete tasks | ✅ Done 2026-07-20 |
| knowledge-base.md | End users | FAQ | ✅ Done 2026-07-20 |
| runbook.md | On-call / Ops | Missing tasks, stuck onboarding | ✅ Done 2026-07-20 |
| onboarding.md | New engineers | Ramp into TaskService |
✅ Done 2026-07-20 |
| rfds/ | Engineers | Design decisions | ✅ Done 2026-07-20 (3 records) |
A routine task (EmployeeTask) is a piece of work assigned to a person, with a description, a period (start → due), a status they advance (Not started → In progress → Completed), and a time-derived state (Upcoming / Current / Ending / Due). A predefined task (PredefinedTask) is a reusable template — owned, optionally locked, and flagged IsForOnboarding — that carries checklist items; applying it to a person creates an EmployeePredefinedTask. Onboarding-flagged templates are the mechanism behind a new hire's onboarding checklist ("Collect your Work Tools", "Meet with Head…"). The product presents the two as tabs — Routine and Onboarding — on /dashboard/tasks; the whole thing is served from the middleware.
Verified live: the two tabs — Routine (/dashboard/tasks, "Create new routine task", cols Title/Description/Owner/Period/Status with live statuses Not started/Current/Due) and Onboarding (/dashboard/tasks/onboarding, "Create onboarding task", cols Description/Status = Active, with real template items like "Send all onboarding documents to the HR Officer" and "Collect your Work Tools").
Confirmed the two-type mapping: Routine = EmployeeTask (live assignments); Onboarding = PredefinedTask (IsForOnboarding, reusable templates).
Scope guard: excluded the co-located approval-workflow config (Approval_WorkflowsService, ApprovalWorkflowConfigSetting) — that's Requests approval-chain configuration, not Tasks (RFD-003).
Service note: the routine-task list loaded from middleware-dev.paidhr.com/admin/tasks/selectroutinetasks; core-backend also exposes Admin/Tasks/*. Split not fully mapped.
Source-path caveat: pages/dashboard/tasks/ is a grab-bag (also disciplinary/, performance/); the module proper is tasks/tasks/.