TaskRecord
A completed or in-progress task representing a form-based work assignment. Tasks originate from food safety schedules or production events. Each task captures who was assigned, when it was completed, and the full form submission data including review status.
Task identifier.
4821Task title.
Pre-Production Sanitation CheckReference to the form definition this task uses.
301Display name of the form.
Sanitation Verification FormWhere this task originated: food_safety — scheduled safety check or inspection. production — triggered by a work order event (start, complete, pause).
Possible values: [food_safety, production]
productionType of task: submission — operator fills out a form. approval — reviewer approves a submission. follow_up — corrective action required. escalation — escalated for higher-level review.
Possible values: [submission, approval, follow_up, escalation]
submissionTask-level status: pending — created, not yet assigned. assigned — assigned to an operator. in_progress — operator has started. completed — operator has finished. skipped — task was skipped.
Possible values: [pending, assigned, in_progress, completed, skipped]
completedTask priority level.
Possible values: [low, medium, high, urgent]
mediumOperator assigned to this task.
usr-00412Display name of the assigned operator.
Maria GarciaLinked work order ID, if this task was triggered by a production event. Null for standalone food safety tasks.
6073Date the task was scheduled for (ISO 8601).
2025-04-10Task due date and time (ISO 8601).
2025-04-10T12:00:00ZWhen the task was created (ISO 8601).
2025-04-09T14:00:00Zsubmission object
The form submission for a task. Contains the operator's responses, timestamps, and review information. The fieldData array holds the actual form content as key-value pairs matching the form definition fields.
Submission identifier.
9102Submission review status: draft — started but not submitted. submitted — submitted by operator. pending_approval — awaiting reviewer. approved — reviewer approved. rejected — reviewer rejected. change_requested — reviewer requested modifications.
Possible values: [draft, submitted, pending_approval, approved, rejected, change_requested]
approvedWhen the operator submitted the form (ISO 8601).
2025-04-10T09:45:00ZID of the operator who submitted.
usr-00412Name of the operator who submitted.
Maria GarciaWhen the submission was reviewed (ISO 8601). Null if not yet reviewed.
2025-04-10T11:20:00ZID of the reviewer. Null if not yet reviewed.
usr-00108Name of the reviewer.
James ChenComments left by the reviewer.
fieldData object[]
The form field values captured by the operator. Each entry corresponds to a field in the form definition. The value object structure varies by field type — for example, a temperature field stores value and unit, a checklist stores items with labels and checked states.
Form field identifier.
501Display label for this field.
Surface TemperatureType of form field (e.g., temperature, checklist, signature, text, number, photo).
temperaturevalue object
The captured value. Structure depends on fieldType.
The captured value. Structure depends on fieldType.
{
"taskId": "4821",
"title": "Pre-Production Sanitation Check",
"formId": "301",
"formName": "Sanitation Verification Form",
"source": "production",
"taskType": "submission",
"status": "completed",
"priority": "medium",
"assigneeId": "usr-00412",
"assigneeName": "Maria Garcia",
"workOrderId": "6073",
"scheduledDate": "2025-04-10",
"dueDate": "2025-04-10T12:00:00Z",
"createdAt": "2025-04-09T14:00:00Z",
"submission": {
"submissionId": "9102",
"status": "approved",
"submittedAt": "2025-04-10T09:45:00Z",
"submittedById": "usr-00412",
"submittedByName": "Maria Garcia",
"reviewedAt": "2025-04-10T11:20:00Z",
"reviewedById": "usr-00108",
"reviewedByName": "James Chen",
"reviewComments": "string",
"fieldData": [
{
"fieldId": "501",
"fieldLabel": "Surface Temperature",
"fieldType": "temperature",
"value": {}
}
]
}
}