Package ca.uhn.fhir.batch2.model
Enum StatusEnum
- All Implemented Interfaces:
Serializable,Comparable<StatusEnum>
Status of a Batch2 Job Instance.
The initial state is QUEUED.
The terminal states are COMPLETED, CANCELLED, or FAILED.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTask has been cancelled by the user.Task completed successfullyDeprecated.this is basically a synonym for IN_PROGRESS - display should use the presence of an error message on the instance to indicate that there has been a transient error.Task has failed and is known to be unrecoverable.For reduction stepsTask is current executingTask is waiting to execute and should begin with no intervention required. -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<StatusEnum>Statuses that represent a job that has ended.static StatusEnum[]Statuses that represent a job that has not yet completed.States this state may transotion to.static Set<StatusEnum>Statuses that represent a job that has not ended.States that may transition to this state.booleanbooleanisEnded()booleanstatic booleanisLegalStateTransition(StatusEnum theOrigStatus, StatusEnum theNewStatus) static StatusEnumReturns the enum constant of this type with the specified name.static StatusEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QUEUED
Task is waiting to execute and should begin with no intervention required. -
IN_PROGRESS
Task is current executing -
FINALIZE
For reduction steps -
COMPLETED
Task completed successfully -
ERRORED
Deprecated.this is basically a synonym for IN_PROGRESS - display should use the presence of an error message on the instance to indicate that there has been a transient error.Chunk execution resulted in an error but the error may be transient (or transient status is unknown). The job may still complete successfully. -
FAILED
Task has failed and is known to be unrecoverable. There is no reason to believe that retrying will result in a different outcome. -
CANCELLED
Task has been cancelled by the user.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getIncompleteStatuses
Statuses that represent a job that has not yet completed. I.e. all statuses exceptCOMPLETED -
getEndedStatuses
Statuses that represent a job that has ended. I.e. all statuses exceptand #COMPLETED -
getNotEndedStatuses
Statuses that represent a job that has not ended. I.e.and #COMPLETED -
isLegalStateTransition
-
isIncomplete
-
isEnded
-
isCancellable
-
getPriorStates
States that may transition to this state. -
getNextStates
States this state may transotion to.
-