Package org.alfresco.service.cmr.action
Enum Class ActionStatus
- All Implemented Interfaces:
Serializable,Comparable<ActionStatus>,Constable
The various states an Action can be in.
- Author:
- Nick Burch
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Action, which must implementCancellableAction, detected that a cancellation was requested and cancelled itself.The Action was run without errorThe Action failed with a transient exception.The Action failed to run to completion.A new Action, which has never been runAn Action which has been scheduled for Asynchronous execution, but not yet run.Indicates that the Action is currently being executed by theActionService -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionStatusReturns the enum constant of this class with the specified name.static ActionStatusReturns the enum constant of this class with the specified name.static ActionStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
New
A new Action, which has never been run -
Pending
An Action which has been scheduled for Asynchronous execution, but not yet run. -
Running
Indicates that the Action is currently being executed by theActionService -
Completed
The Action was run without error -
Cancelled
The Action, which must implementCancellableAction, detected that a cancellation was requested and cancelled itself. -
Failed
The Action failed to run to completion. CallAction.getExecutionFailureMessage()to find out why. -
Declined
The Action failed with a transient exception. CallAction.getExecutionFailureMessage()to find out why.- Since:
- 4.0.1
-
-
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
-
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:
s- 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
-