Human tasks and timers
Human decisions and elapsed time are part of the process model, not work that has to hold an HTTP request open.
Human tasks
A human state parks the instance and presents work in the operational Tasks inbox. Resolution data can influence the next transition. Definitions can declare task outcomes; the submitted outcome must match the declared model.
Tasks may have due dates, overdue behavior and boundary timers. A due reminder and a state timeout are different mechanisms; follow the authoring reference when deciding which changes the route.
Timers
A timer state persists a wait. The scheduler resumes due work. The order demo uses pure timer states between automatic actions that update the visible stage.
{
"kind": "timer",
"name": "Queued for kitchen",
"timer": { "after": "PT10S", "onTimeout": "cooking" },
"transitions": [{ "id": "t-delay-1", "to": "cooking", "default": true }]
}This fragment is adapted from samples/order-pipeline.jsonc. Entry actions run before a wait parks; exit actions run when it leaves, including timer timeout routing.
Operational decisions
Model who can complete the task, which outcomes are valid, and what happens if no one responds. Authorization and company scoping apply in the operational runtime.
See the human approval pattern for an illustrated overview of a decision and its possible outcomes.