Package org.flowable.job.service.impl
Class HistoryJobProcessorContextImpl
- java.lang.Object
-
- org.flowable.job.service.impl.HistoryJobProcessorContextImpl
-
- All Implemented Interfaces:
HistoryJobProcessorContext
public class HistoryJobProcessorContextImpl extends Object implements HistoryJobProcessorContext
The defaultHistoryJobProcessorContextimplementation used in theHistoryJobProcessor.- Author:
- Guy Brand
- See Also:
HistoryJobProcessor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.flowable.job.service.HistoryJobProcessorContext
HistoryJobProcessorContext.Phase
-
-
Field Summary
Fields Modifier and Type Field Description protected HistoryJobEntityhistoryJobEntityprotected HistoryJobProcessorContext.Phasephase
-
Constructor Summary
Constructors Constructor Description HistoryJobProcessorContextImpl(HistoryJobProcessorContext.Phase phase, HistoryJobEntity historyJobEntity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoryJobEntitygetHistoryJobEntity()Get the history job entity.HistoryJobProcessorContext.PhasegetPhase()Get the history job phase.booleanisInPhase(HistoryJobProcessorContext.Phase phase)Returnstrueif theHistoryJobProcessorContextis in the specified phase, false otherwise.StringtoString()
-
-
-
Field Detail
-
phase
protected final HistoryJobProcessorContext.Phase phase
-
historyJobEntity
protected final HistoryJobEntity historyJobEntity
-
-
Constructor Detail
-
HistoryJobProcessorContextImpl
public HistoryJobProcessorContextImpl(HistoryJobProcessorContext.Phase phase, HistoryJobEntity historyJobEntity)
-
-
Method Detail
-
getPhase
public HistoryJobProcessorContext.Phase getPhase()
Description copied from interface:HistoryJobProcessorContextGet the history job phase.- Specified by:
getPhasein interfaceHistoryJobProcessorContext- Returns:
- the history job phase
-
getHistoryJobEntity
public HistoryJobEntity getHistoryJobEntity()
Description copied from interface:HistoryJobProcessorContextGet the history job entity.- Specified by:
getHistoryJobEntityin interfaceHistoryJobProcessorContext- Returns:
- the history job entity
-
isInPhase
public boolean isInPhase(HistoryJobProcessorContext.Phase phase)
Description copied from interface:HistoryJobProcessorContextReturnstrueif theHistoryJobProcessorContextis in the specified phase, false otherwise.- Specified by:
isInPhasein interfaceHistoryJobProcessorContext- Parameters:
phase- the phase to check- Returns:
trueif theHistoryJobProcessorContextis in the specified phase, false otherwise.
-
-