ShtukbaseStandard
package page→ /work/contours/tasks.md

pages/work/contours/tasks.md

31 lines, 2.0 KB. As a page.

  1. ---
  2. type: Contour
  3. title: "Agent task contour"
  4. icon: "✅"
  5. collection: /work/tasks
  6. stageField: status
  7. overrides: people
  8. phases:
  9. - /work/contours/tasks/todo
  10. - /work/contours/tasks/doing
  11. - /work/contours/tasks/waiting
  12. - /work/contours/tasks/done
  13. - /work/contours/tasks/hold
  14. entry: /work/contours/tasks/todo
  15. ---
  16. 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](/work/tasks.md) through the field "State".
  17. | From | To | Condition |
  18. |---|---|---|
  19. | [Queued](/work/contours/tasks/todo.md) | [Doing](/work/contours/tasks/doing.md) | all obligations from `waitsFor` are fulfilled, all tasks from `waitsForOwner` are done |
  20. | [Queued](/work/contours/tasks/todo.md) | [Waiting](/work/contours/tasks/waiting.md) | there is an unfulfilled obligation in `waitsFor` or an undone owner task in `waitsForOwner` |
  21. | [Doing](/work/contours/tasks/doing.md) | [Waiting](/work/contours/tasks/waiting.md) | an unfulfilled obligation appeared or a decision is needed |
  22. | [Waiting](/work/contours/tasks/waiting.md) | [Doing](/work/contours/tasks/doing.md) | all obligations from `waitsFor` are fulfilled |
  23. | [Doing](/work/contours/tasks/doing.md) | [Done](/work/contours/tasks/done.md) | the "Done when" condition is met |
  24. | any except "Done" | [On hold](/work/contours/tasks/hold.md) | the reason is written in `holdReason` |
  25. | [On hold](/work/contours/tasks/hold.md) | [Queued](/work/contours/tasks/todo.md) | a person returned the task to work |
  26. **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](/work/owner-tasks.md). For now the program does not check this gate, the check is made by whoever moves the task.
  27. The executor moves it. There is no path out of "Done": if the work came back, it is a new task or a bug.