Package org.flowable.job.service
Interface JobProcessorContext
-
- All Known Implementing Classes:
JobProcessorContextImpl
public interface JobProcessorContextThe context used in theJobProcessor. It holds the job phase and the job entity.- Author:
- Guy Brand
- See Also:
JobProcessorContext.Phase
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJobProcessorContext.PhaseThe job phases.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractJobEntitygetJobEntity()Get the job entity.JobProcessorContext.PhasegetPhase()Get the job phase.booleanisInPhase(JobProcessorContext.Phase phase)Returnstrueif theJobProcessorContextis in the specified phase, false otherwise.
-
-
-
Method Detail
-
getPhase
JobProcessorContext.Phase getPhase()
Get the job phase.- Returns:
- the job phase
-
getJobEntity
AbstractJobEntity getJobEntity()
Get the job entity.- Returns:
- the job entity
-
isInPhase
boolean isInPhase(JobProcessorContext.Phase phase)
Returnstrueif theJobProcessorContextis in the specified phase, false otherwise.- Parameters:
phase- the phase to check- Returns:
trueif theJobProcessorContextis in the specified phase, false otherwise.
-
-