active
: The task is currently in progress.pending
: The task is waiting for a condition to be met or for an external action.failed
: The task encountered an error and has not been completed successfully.completed
: The task has been successfully completed.active
to pending
if it requires user input or external validation, and it may move to completed
when the workflow finishes successfully.
failed
, allowing the workflow to either retry the task or move to a designated error-handling step.
failed
when errors occur and define retry or alternative steps in the workflow.