Class BatchSetRemovalTimeJobHandler
java.lang.Object
org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
org.camunda.bpm.engine.impl.batch.removaltime.BatchSetRemovalTimeJobHandler
- All Implemented Interfaces:
BatchJobHandler<SetRemovalTimeBatchConfiguration>,OptimisticLockingListener,JobHandler<BatchJobConfiguration>
public class BatchSetRemovalTimeJobHandler
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 DatecalculateRemovalTime(HistoricBatchEntity batch, CommandContext commandContext) protected SetRemovalTimeBatchConfigurationcreateJobConfiguration(SetRemovalTimeBatchConfiguration configuration, List<String> batchIds) voidexecuteHandler(SetRemovalTimeBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) protected HistoricBatchEntityfindBatchById(String instanceId, CommandContext commandContext) protected ByteArrayEntityfindByteArrayById(String byteArrayId, CommandContext commandContext) protected StringgetHistoryRemovalTimeStrategy(CommandContext commandContext) Get the job declaration for batch jobs.protected SetRemovalTimeJsonConverterprotected DategetOrCalculateRemovalTime(SetRemovalTimeBatchConfiguration batchConfiguration, HistoricBatchEntity instance, CommandContext commandContext) getType()protected booleanhasBaseTime(HistoricBatchEntity instance, CommandContext commandContext) protected booleanisDmnEnabled(CommandContext commandContext) protected booleanisEnded(HistoricBatchEntity instance) protected booleanisStrategyEnd(CommandContext commandContext) protected booleanisStrategyStart(CommandContext commandContext) Methods inherited from class org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler
calculateInvocationsPerBatchJob, createBatchJob, createJobEntities, createJobs, deleteJobs, execute, failedOperation, getEntityType, newConfiguration, onDelete, postProcessJob, readConfiguration, sanitizeMappings, saveConfiguration, writeConfiguration
-
Field Details
-
JOB_DECLARATION
-
-
Constructor Details
-
BatchSetRemovalTimeJobHandler
public BatchSetRemovalTimeJobHandler()
-
-
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, HistoricBatchEntity instance, CommandContext commandContext) -
addRemovalTime
-
hasBaseTime
-
isEnded
-
isStrategyStart
-
isStrategyEnd
-
getHistoryRemovalTimeStrategy
-
isDmnEnabled
-
calculateRemovalTime
-
findByteArrayById
-
findBatchById
-
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> batchIds) - Specified by:
createJobConfigurationin classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
-
getJsonConverterInstance
- Specified by:
getJsonConverterInstancein classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
-
getType
-