Page Summary
-
Task.TaskOutcomeis an annotation that indicates the result of a task execution attempt. -
When a task's state is closed,
Task.TaskOutcomespecifies whether the task was successfully completed, failed, or has an unspecified outcome. -
The possible values for
Task.TaskOutcomeareFAILED,SUCCEEDED, andUNSPECIFIED, represented by the integer values 2, 1, and 0, respectively.
The outcome of an attempt to execute a task. When TaskState is closed, this indicates whether it was completed successfully or not.
Constant Summary
| int | FAILED | Task could not be completed or was cancelled. |
| int | SUCCEEDED | Task was completed successfully. |
| int | UNSPECIFIED | Default, used for an unspecified or unrecognized Task outcome. |
Inherited Method Summary
Constants
public static final int FAILED
Task could not be completed or was cancelled.
public static final int SUCCEEDED
Task was completed successfully.
public static final int UNSPECIFIED
Default, used for an unspecified or unrecognized Task outcome.