org.camunda.bpm.engine.impl.jobexecutor.historycleanup
Class HistoryCleanupJobDeclaration

java.lang.Object
  extended by org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration<HistoryCleanupContext,EverLivingJobEntity>
      extended by 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
HistoryCleanupJobDeclaration()
           
 
Method Summary
protected  EverLivingJobEntity newJobInstance(HistoryCleanupContext context)
           
protected  void postInitialize(HistoryCleanupContext context, EverLivingJobEntity job)
          general callback to override any configuration after the defaults have been applied
 EverLivingJobEntity 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, getJobPriorityProvider, getProcessDefinition, isExclusive, resolveExclusive, resolveJobDefinitionId, resolveJobHandler, resolveJobHandlerType, resolveRetries, setActivity, setExclusive, setJobConfiguration, setJobDefinitionId, setJobPriorityProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryCleanupJobDeclaration

public HistoryCleanupJobDeclaration()
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 class JobDeclaration<HistoryCleanupContext,EverLivingJobEntity>

newJobInstance

protected EverLivingJobEntity newJobInstance(HistoryCleanupContext context)
Specified by:
newJobInstance in class JobDeclaration<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 class JobDeclaration<HistoryCleanupContext,EverLivingJobEntity>

reconfigure

public EverLivingJobEntity reconfigure(HistoryCleanupContext context,
                                       EverLivingJobEntity job)
Description copied from class: JobDeclaration
Re-initialize configuration part.

Overrides:
reconfigure in class JobDeclaration<HistoryCleanupContext,EverLivingJobEntity>

resolveJobHandlerConfiguration

protected HistoryCleanupJobHandlerConfiguration resolveJobHandlerConfiguration(HistoryCleanupContext context)
Specified by:
resolveJobHandlerConfiguration in class JobDeclaration<HistoryCleanupContext,EverLivingJobEntity>

resolveDueDate

public Date resolveDueDate(HistoryCleanupContext context)
Overrides:
resolveDueDate in class JobDeclaration<HistoryCleanupContext,EverLivingJobEntity>


Copyright © 2017 camunda services GmbH. All rights reserved.