Draft. This page has not been checked against the product yet and may not match what you see.
Cleaning statuses
Every status a cleaning task, route and visit can have, what sets it, and what can happen next. Written for testers, developers and anyone writing a spec.
Task statuses
Section titled “Task statuses”The allowed moves come from CLEANING_TASK_TRANSITIONS in packages/shared-types/src/cleaning.ts. The API refuses any other move.
| Shown in the app | System name | What sets it | What can happen next |
|---|---|---|---|
| Unassigned | unassigned |
A task created without a cleaner, or a route stop with no cleaner. | Assigned, cancelled |
| Assigned | assigned |
A task created with a cleaner, or assigning one. | In progress, blocked, cancelled |
| In progress | in_progress |
The assigned cleaner opens the task. | Blocked, awaiting evidence, awaiting review, completed, cancelled |
| Blocked | blocked |
The cleaner reports a blocker. | Assigned, in progress, cancelled |
| Awaiting evidence | awaiting_evidence |
The checklist is done and the task needs a photo. | Awaiting review, in progress, cancelled |
| Awaiting review | awaiting_review |
A photo was sent, or a checklist step was marked Issue. | Completed, in progress (returned), awaiting evidence, cancelled |
| Completed | completed |
Approval, or a finished checklist when no photo is needed. | In progress (reopened, with a reason) |
| Cancelled | cancelled |
A route stop is removed, or a cancel with a reason. | Nothing |
| Draft | draft |
Not used by campOS today. | Unassigned, scheduled, cancelled |
| Scheduled | scheduled |
Not used by campOS today. | Assigned, cancelled |
Rules on top of the table:
- Cancelling, reopening and returning work for rework each need a reason.
- Completing a task that needs a photo needs at least one accepted photo and a fully ticked checklist.
- Moving a photo task to Awaiting review needs a photo that is waiting to be reviewed.
- Every change carries the task’s version; a change made on an out-of-date copy is refused.
- A cleaner can change only their own tasks, unless their role can assign or review. A vendor admin can change only their vendor’s tasks.
Route statuses
Section titled “Route statuses”| Shown in the app | System name | What sets it |
|---|---|---|
| Draft | draft |
Creating the route, just before it is published. |
| Published | published |
Publishing the route; its stops become tasks. |
| Ready, In progress, At risk, Blocked, Completed, Cancelled | ready, in_progress, at_risk, blocked, completed, cancelled |
Defined and shown by the app, but not set by campOS today. |
Visit statuses
Section titled “Visit statuses”A visit is one location on one service day of a cleaning plan.
| Shown in the app | System name | What sets it |
|---|---|---|
| Uncovered | uncovered |
A new visit, or one whose route stop was removed. |
| Released | released |
A published route stop covers the visit. |
| Cancelled | cancelled |
The day left the plan’s schedule, or the location left the plan. |
| Unscheduled, Covered, Blocked, Overdue, Completed | unscheduled, covered, blocked, overdue, completed |
Defined and shown by the app, but not set by campOS today. |
Quality finding statuses
Section titled “Quality finding statuses”| Shown in the app | System name | What sets it |
|---|---|---|
| Open | open |
Flagging a failed criterion on a tour. |
| Corrective in progress | corrective_open |
Creating the corrective task, or reopening it. |
| Closed | closed |
Verify & close, after the corrective task is completed. |
| Awaiting verification | awaiting_verification |
Defined, but not set by campOS today. |
