Task.TaskOutcome

  • Task.TaskOutcome is an annotation that indicates the result of a task execution attempt.

  • When a task's state is closed, Task.TaskOutcome specifies whether the task was successfully completed, failed, or has an unspecified outcome.

  • The possible values for Task.TaskOutcome are FAILED, SUCCEEDED, and UNSPECIFIED, represented by the integer values 2, 1, and 0, respectively.

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.

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.

Constant Value: 2

public static final int SUCCEEDED

Task was completed successfully.

Constant Value: 1

public static final int UNSPECIFIED

Default, used for an unspecified or unrecognized Task outcome.

Constant Value: 0