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