Class ProcessSetRemovalTimeJobHandler
java.lang.Object
org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
org.camunda.bpm.engine.impl.batch.removaltime.ProcessSetRemovalTimeJobHandler
- All Implemented Interfaces:
BatchJobHandler<SetRemovalTimeBatchConfiguration>,OptimisticLockingListener,JobHandler<BatchJobConfiguration>
public class ProcessSetRemovalTimeJobHandler
extends AbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
- Author:
- Tassilo Weidner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddRemovalTime(String instanceId, Date removalTime, CommandContext commandContext) protected voidaddRemovalTimeToHierarchy(String rootProcessInstanceId, Date removalTime, CommandContext commandContext) protected DatecalculateRemovalTime(HistoricProcessInstanceEntity processInstance, CommandContext commandContext) protected SetRemovalTimeBatchConfigurationcreateJobConfiguration(SetRemovalTimeBatchConfiguration configuration, List<String> processInstanceIds) voidexecuteHandler(SetRemovalTimeBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) protected ByteArrayEntityfindByteArrayById(String byteArrayId, CommandContext commandContext) protected ProcessDefinitionfindProcessDefinitionById(String processDefinitionId, CommandContext commandContext) protected HistoricProcessInstanceEntityfindProcessInstanceById(String instanceId, CommandContext commandContext) protected StringgetHistoryRemovalTimeStrategy(CommandContext commandContext) Get the job declaration for batch jobs.protected SetRemovalTimeJsonConverterprotected DategetOrCalculateRemovalTime(SetRemovalTimeBatchConfiguration batchConfiguration, HistoricProcessInstanceEntity instance, CommandContext commandContext) getType()protected booleanhasBaseTime(HistoricProcessInstanceEntity instance, CommandContext commandContext) protected booleanhasHierarchy(HistoricProcessInstanceEntity instance) protected booleanisDmnEnabled(CommandContext commandContext) protected booleanisEnded(HistoricProcessInstanceEntity instance) protected booleanisStrategyEnd(CommandContext commandContext) protected booleanisStrategyStart(CommandContext commandContext) Methods inherited from class org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler
createBatchJob, createJobEntities, createJobs, deleteJobs, execute, failedOperation, getEntityType, newConfiguration, onDelete, postProcessJob, readConfiguration, sanitizeMappings, saveConfiguration, writeConfiguration
-
Field Details
-
JOB_DECLARATION
-
-
Constructor Details
-
ProcessSetRemovalTimeJobHandler
public ProcessSetRemovalTimeJobHandler()
-
-
Method Details
-
executeHandler
public void executeHandler(SetRemovalTimeBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) - Specified by:
executeHandlerin classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
-
getOrCalculateRemovalTime
protected Date getOrCalculateRemovalTime(SetRemovalTimeBatchConfiguration batchConfiguration, HistoricProcessInstanceEntity instance, CommandContext commandContext) -
addRemovalTimeToHierarchy
protected void addRemovalTimeToHierarchy(String rootProcessInstanceId, Date removalTime, CommandContext commandContext) -
addRemovalTime
-
hasBaseTime
protected boolean hasBaseTime(HistoricProcessInstanceEntity instance, CommandContext commandContext) -
isEnded
-
isStrategyStart
-
isStrategyEnd
-
hasHierarchy
-
getHistoryRemovalTimeStrategy
-
findProcessDefinitionById
protected ProcessDefinition findProcessDefinitionById(String processDefinitionId, CommandContext commandContext) -
isDmnEnabled
-
calculateRemovalTime
protected Date calculateRemovalTime(HistoricProcessInstanceEntity processInstance, CommandContext commandContext) -
findByteArrayById
-
findProcessInstanceById
protected HistoricProcessInstanceEntity findProcessInstanceById(String instanceId, CommandContext commandContext) -
getJobDeclaration
Description copied from interface:BatchJobHandlerGet the job declaration for batch jobs.- Specified by:
getJobDeclarationin interfaceBatchJobHandler<SetRemovalTimeBatchConfiguration>- Specified by:
getJobDeclarationin classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>- Returns:
- the batch job declaration
-
createJobConfiguration
protected SetRemovalTimeBatchConfiguration createJobConfiguration(SetRemovalTimeBatchConfiguration configuration, List<String> processInstanceIds) - Specified by:
createJobConfigurationin classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
-
getJsonConverterInstance
- Specified by:
getJsonConverterInstancein classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
-
getType
-