contour/work/contours/tasks.md
Agent task contour
A task stands in the queue, goes, waits and ends finished. Separately, it can be put on hold. The contour moves the collection Agent tasks through the field "State".
| From | To | Condition |
|---|---|---|
| Queued | Doing | all obligations from waitsFor are fulfilled, all tasks from waitsForOwner are done |
| Queued | Waiting | there is an unfulfilled obligation in waitsFor or an undone owner task in waitsForOwner |
| Doing | Waiting | an unfulfilled obligation appeared or a decision is needed |
| Waiting | Doing | all obligations from waitsFor are fulfilled |
| Doing | Done | the "Done when" condition is met |
| any except "Done" | On hold | the reason is written in holdReason |
| On hold | Queued | a person returned the task to work |
Gate. A task is let into the state "Doing" only if all obligations from waitsFor are fulfilled and all owner tasks from waitsForOwner are done. Otherwise it goes to "Waiting". Obligations lie in the Deal layer (/deal/obligations), owner tasks in Owner tasks. For now the program does not check this gate, the check is made by whoever moves the task.
The executor moves it. There is no path out of "Done": if the work came back, it is a new task or a bug.
The package Tasks puts this page at
/work/contours/tasks.md.Source text