Enum ActionStatus
- java.lang.Object
-
- java.lang.Enum<ActionStatus>
-
- org.silverpeas.core.workflow.api.instance.ActionStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<ActionStatus>
public enum ActionStatus extends Enum<ActionStatus>
Status of the execution of an action. Used to report about the result of a process flow.- Author:
- mmoquillon
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFFECTATIONS_DONE
PROCESS_FAILED
PROCESSED
SAVED
TO_BE_PROCESSED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActionStatus
from(int statusCode)
int
getCode()
static ActionStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static ActionStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROCESS_FAILED
public static final ActionStatus PROCESS_FAILED
-
TO_BE_PROCESSED
public static final ActionStatus TO_BE_PROCESSED
-
PROCESSED
public static final ActionStatus PROCESSED
-
AFFECTATIONS_DONE
public static final ActionStatus AFFECTATIONS_DONE
-
SAVED
public static final ActionStatus SAVED
-
-
Method Detail
-
values
public static ActionStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ActionStatus c : ActionStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActionStatus valueOf(String name)
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
-
from
public static ActionStatus from(int statusCode)
-
getCode
public int getCode()
-
-