The nine task states and the transitions the kit makes
Nine TaskState values without their TASK_STATE_ prefix, and the transitions the kit makes in capture order. SUBMITTED goes to WORKING in 05, and WORKING ends in COMPLETED in 03 and 05. SUBMITTED goes to INPUT_REQUIRED when the reviewer asks a question in 06, and INPUT_REQUIRED returns to WORKING when the client answers. WORKING goes to AUTH_REQUIRED and back when an operator approves in 07. SUBMITTED goes to REJECTED when the deployer refuses production in 08. WORKING ends in FAILED for a missing commit in 09, and in CANCELED after CancelTask in 10. The four terminal states have double borders and no outgoing arrows. UNSPECIFIED, value 0, stands apart and is never sent by the kit.
AUTH_REQUIRED
value 8
SUBMITTED
value 1
WORKING
value 2
INPUT_REQUIRED
value 6
TERMINAL
COMPLETED
value 3
in 03 05 06 07
FAILED
value 4
commit missing, in 09
CANCELED
value 5
CancelTask, in 10
REJECTED
value 7
in 08
UNSPECIFIED
value 0, unused
Prefix TASK_STATE_ dropped from every name.
Dashed border: interrupted. Double border: terminal.
starts (05)
asks for a branch (06)
client answers (06)
needs approval (07)
operator approves (07)
refuses production (08)