Package org.flowable.job.service
Interface JobProcessorContext
- All Known Implementing Classes:
JobProcessorContextImpl
public interface JobProcessorContext
The context used in the
JobProcessor
. It holds the job phase and the
job entity.- Author:
- Guy Brand
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGet the job entity.getPhase()
Get the job phase.boolean
Returnstrue
if theJobProcessorContext
is in the specified phase, false otherwise.
-
Method Details
-
getPhase
JobProcessorContext.Phase getPhase()Get the job phase.- Returns:
- the job phase
-
getJobEntity
AbstractJobEntity getJobEntity()Get the job entity.- Returns:
- the job entity
-
isInPhase
Returnstrue
if theJobProcessorContext
is in the specified phase, false otherwise.- Parameters:
phase
- the phase to check- Returns:
true
if theJobProcessorContext
is in the specified phase, false otherwise.
-