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 ParameterValueProvidergetJobPriorityProvider()protected EverLivingJobEntitynewJobInstance(HistoryCleanupContext context)protected voidpostInitialize(HistoryCleanupContext context, EverLivingJobEntity job)general callback to override any configuration after the defaults have been appliedEverLivingJobEntityreconfigure(HistoryCleanupContext context, EverLivingJobEntity job)Re-initialize configuration part.DateresolveDueDate(HistoryCleanupContext context)protected ExecutionEntityresolveExecution(HistoryCleanupContext context)Returns the execution in which context the job is created.protected HistoryCleanupJobHandlerConfigurationresolveJobHandlerConfiguration(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:JobDeclarationReturns 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:
resolveExecutionin classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
newJobInstance
protected EverLivingJobEntity newJobInstance(HistoryCleanupContext context)
- Specified by:
newJobInstancein classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
postInitialize
protected void postInitialize(HistoryCleanupContext context, EverLivingJobEntity job)
Description copied from class:JobDeclarationgeneral callback to override any configuration after the defaults have been applied- Overrides:
postInitializein classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
reconfigure
public EverLivingJobEntity reconfigure(HistoryCleanupContext context, EverLivingJobEntity job)
Description copied from class:JobDeclarationRe-initialize configuration part.- Overrides:
reconfigurein classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
resolveJobHandlerConfiguration
protected HistoryCleanupJobHandlerConfiguration resolveJobHandlerConfiguration(HistoryCleanupContext context)
- Specified by:
resolveJobHandlerConfigurationin classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
resolveDueDate
public Date resolveDueDate(HistoryCleanupContext context)
- Overrides:
resolveDueDatein classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
getJobPriorityProvider
public ParameterValueProvider getJobPriorityProvider()
- Overrides:
getJobPriorityProviderin classJobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
-
-