Class HistoryCleanupJobDeclaration
- java.lang.Object
-
- org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
- org.camunda.bpm.engine.impl.jobexecutor.historycleanup.HistoryCleanupJobDeclaration
-
- All Implemented Interfaces:
Serializable
public class HistoryCleanupJobDeclaration extends JobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
Job declaration for history cleanup.- Author:
- Svetlana Dorokhova
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
activity, exclusive, jobConfiguration, jobDefinitionId, jobHandlerConfiguration, jobHandlerType, jobPriorityProvider
-
-
Constructor Summary
Constructors Constructor Description HistoryCleanupJobDeclaration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterValueProvider
getJobPriorityProvider()
protected EverLivingJobEntity
newJobInstance(HistoryCleanupContext context)
protected void
postInitialize(HistoryCleanupContext context, EverLivingJobEntity job)
general callback to override any configuration after the defaults have been appliedEverLivingJobEntity
reconfigure(HistoryCleanupContext context, EverLivingJobEntity job)
Re-initialize configuration part.Date
resolveDueDate(HistoryCleanupContext context)
protected ExecutionEntity
resolveExecution(HistoryCleanupContext context)
Returns the execution in which context the job is created.protected HistoryCleanupJobHandlerConfiguration
resolveJobHandlerConfiguration(HistoryCleanupContext context)
-
Methods inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
createJobInstance, getActivity, getActivityId, getJobConfiguration, getJobDefinitionId, getJobHandlerType, getProcessDefinition, isExclusive, resolveExclusive, resolveJobDefinitionId, resolveJobHandler, resolveJobHandlerType, resolveRetries, setActivity, setExclusive, setJobConfiguration, setJobDefinitionId, setJobPriorityProvider
-
-
-
-
Method Detail
-
resolveExecution
protected ExecutionEntity resolveExecution(HistoryCleanupContext context)
Description copied from class:JobDeclaration
Returns the execution in which context the job is created. The execution is used to determine the job's priority based on a BPMN activity the execution is currently executing. May be null.- Specified by:
resolveExecution
in classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
newJobInstance
protected EverLivingJobEntity newJobInstance(HistoryCleanupContext context)
- Specified by:
newJobInstance
in classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
postInitialize
protected void postInitialize(HistoryCleanupContext context, EverLivingJobEntity job)
Description copied from class:JobDeclaration
general callback to override any configuration after the defaults have been applied- Overrides:
postInitialize
in classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
reconfigure
public EverLivingJobEntity reconfigure(HistoryCleanupContext context, EverLivingJobEntity job)
Description copied from class:JobDeclaration
Re-initialize configuration part.- Overrides:
reconfigure
in classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
resolveJobHandlerConfiguration
protected HistoryCleanupJobHandlerConfiguration resolveJobHandlerConfiguration(HistoryCleanupContext context)
- Specified by:
resolveJobHandlerConfiguration
in classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
resolveDueDate
public Date resolveDueDate(HistoryCleanupContext context)
- Overrides:
resolveDueDate
in classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
getJobPriorityProvider
public ParameterValueProvider getJobPriorityProvider()
- Overrides:
getJobPriorityProvider
in classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
-