Task.TaskOutcome
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
Task.TaskOutcome is an annotation that indicates the result of a task execution attempt.
There are three possible outcomes: SUCCEEDED, FAILED, and UNSPECIFIED.
SUCCEEDED represents a successfully completed task, FAILED indicates a task that could not be completed or was cancelled, and UNSPECIFIED is the default for unknown outcomes.
When the TaskState is closed, TaskOutcome determines if the task was completed successfully.
public static abstract @interface Task.TaskOutcome implements Annotation
The outcome of an attempt to execute a task. When TaskState is closed, this indicates
whether it was completed successfully or not.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[],["`Task.TaskOutcome` represents the result of a task attempt, indicated when `TaskState` is closed. It defines three possible outcomes: `FAILED` (2), where the task was unsuccessful or cancelled; `SUCCEEDED` (1), indicating successful completion; and `UNSPECIFIED` (0), the default for unknown or undefined results. It is an annotation that implements methods `annotationType`, `equals`, `hashCode`, and `toString`.\n"]]