Package de.dlr.proseo.model.enums
Enum Class OrderState
- All Implemented Interfaces:
Serializable,Comparable<OrderState>,Constable
Possible states for a processing order; legal state transitions:
- INITIAL -> APPROVED: Customer approved order parameters and/or committed budget
- APPROVED -> PLANNED: Jobs for the processing order have been generated
- PLANNED -> RELEASED: The order is released for running as planned
- RELEASED -> RUNNING: The first jobs have started, further jobs can be started
- RUNNING -> SUSPENDING: Order execution halted, no further jobs will be started (started jobs will be completed, if they are not halted themselves)
- SUSPENDING -> PLANNED: All jobs for the order are either completed or halted (after suspending the order)
- RUNNING -> COMPLETED: All jobs have been completed successfully
- RUNNING -> FAILED: All jobs have been completed, but at least one of them failed
- PLANNED -> FAILED: The order was cancelled by the operator
- COMPLETED/FAILED ->; CLOSED: Delivery/failure has been acknowledged by customer and/or order fee has been paid
- Author:
- Dr. Thomas Bassler
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOrder has been approved (e. g. order parameters, bulk processing budget etc.)The order has been closed, no further actions (except deletion) are possibleAll jobs have been completed successfullyAll jobs are finished, but at least one job failedOrder has been created and can be modified through REST API, GUI or CLIPlanning process completed, or retry has been issuedPlanning process is runningPlanning process has failedReleasing process completed, but no job has yet been startedReleasing process is runningReleasing process completed and at least one job is runningA suspend command has been issued, but at least one job is still running -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLegalTransition(OrderState other) Check whether the transition to the other state is legalstatic OrderStateReturns the enum constant of this class with the specified name.static OrderState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
Order has been created and can be modified through REST API, GUI or CLI -
APPROVED
Order has been approved (e. g. order parameters, bulk processing budget etc.) -
PLANNING
Planning process is running -
PLANNING_FAILED
Planning process has failed -
PLANNED
Planning process completed, or retry has been issued -
RELEASING
Releasing process is running -
RELEASED
Releasing process completed, but no job has yet been started -
RUNNING
Releasing process completed and at least one job is running -
SUSPENDING
A suspend command has been issued, but at least one job is still running -
COMPLETED
All jobs have been completed successfully -
FAILED
All jobs are finished, but at least one job failed -
CLOSED
The order has been closed, no further actions (except deletion) are possible
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isLegalTransition
Check whether the transition to the other state is legal- Parameters:
other- the state to switch to- Returns:
- true, if the transition is legal, false otherwise
-