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 Modifier and Type Field Description static BatchJobDeclaration
JOB_DECLARATION
-
Constructor Summary
Constructors Constructor Description BatchSetRemovalTimeJobHandler()
-
Method Summary
-
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 Detail
-
JOB_DECLARATION
public static final BatchJobDeclaration JOB_DECLARATION
-
-
Method Detail
-
executeHandler
public void executeHandler(SetRemovalTimeBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
- Specified by:
executeHandler
in classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
-
getOrCalculateRemovalTime
protected Date getOrCalculateRemovalTime(SetRemovalTimeBatchConfiguration batchConfiguration, HistoricBatchEntity instance, CommandContext commandContext)
-
addRemovalTime
protected void addRemovalTime(String instanceId, Date removalTime, CommandContext commandContext)
-
hasBaseTime
protected boolean hasBaseTime(HistoricBatchEntity instance, CommandContext commandContext)
-
isEnded
protected boolean isEnded(HistoricBatchEntity instance)
-
isStrategyStart
protected boolean isStrategyStart(CommandContext commandContext)
-
isStrategyEnd
protected boolean isStrategyEnd(CommandContext commandContext)
-
getHistoryRemovalTimeStrategy
protected String getHistoryRemovalTimeStrategy(CommandContext commandContext)
-
isDmnEnabled
protected boolean isDmnEnabled(CommandContext commandContext)
-
calculateRemovalTime
protected Date calculateRemovalTime(HistoricBatchEntity batch, CommandContext commandContext)
-
findByteArrayById
protected ByteArrayEntity findByteArrayById(String byteArrayId, CommandContext commandContext)
-
findBatchById
protected HistoricBatchEntity findBatchById(String instanceId, CommandContext commandContext)
-
getJobDeclaration
public JobDeclaration<BatchJobContext,MessageEntity> getJobDeclaration()
Description copied from interface:BatchJobHandler
Get the job declaration for batch jobs.- Specified by:
getJobDeclaration
in interfaceBatchJobHandler<SetRemovalTimeBatchConfiguration>
- Specified by:
getJobDeclaration
in classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
- Returns:
- the batch job declaration
-
createJobConfiguration
protected SetRemovalTimeBatchConfiguration createJobConfiguration(SetRemovalTimeBatchConfiguration configuration, List<String> batchIds)
- Specified by:
createJobConfiguration
in classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
-
getJsonConverterInstance
protected SetRemovalTimeJsonConverter getJsonConverterInstance()
- Specified by:
getJsonConverterInstance
in classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
-
getType
public String getType()
-
-