Package org.flowable.job.service
Enum HistoryJobProcessorContext.Phase
- java.lang.Object
-
- java.lang.Enum<HistoryJobProcessorContext.Phase>
-
- org.flowable.job.service.HistoryJobProcessorContext.Phase
-
- All Implemented Interfaces:
Serializable,Comparable<HistoryJobProcessorContext.Phase>
- Enclosing interface:
- HistoryJobProcessorContext
public static enum HistoryJobProcessorContext.Phase extends Enum<HistoryJobProcessorContext.Phase>
The job phases.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEFORE_CREATEThe history job is in this phase before it gets created.BEFORE_EXECUTEThe history job is in this phase before it gets executed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HistoryJobProcessorContext.PhasevalueOf(String name)Returns the enum constant of this type with the specified name.static HistoryJobProcessorContext.Phase[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEFORE_CREATE
public static final HistoryJobProcessorContext.Phase BEFORE_CREATE
The history job is in this phase before it gets created. The history job entity from theHistoryJobProcessorContext.getHistoryJobEntity()can therefore be modified before it gets persisted.
-
BEFORE_EXECUTE
public static final HistoryJobProcessorContext.Phase BEFORE_EXECUTE
The history job is in this phase before it gets executed. Normally this stage is entered through theAsyncExecutormeaning that the history job is executed in another thread.
-
-
Method Detail
-
values
public static HistoryJobProcessorContext.Phase[] 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 (HistoryJobProcessorContext.Phase c : HistoryJobProcessorContext.Phase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HistoryJobProcessorContext.Phase 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
-
-