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>,JobHandler<BatchJobConfiguration>
public class ProcessSetRemovalTimeJobHandler extends AbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
- Author:
 - Tassilo Weidner
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static BatchJobDeclarationJOB_DECLARATION 
- 
Constructor Summary
Constructors Constructor Description ProcessSetRemovalTimeJobHandler() 
- 
Method Summary
- 
Methods inherited from class org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler
createBatchJob, createJobEntities, createJobs, deleteJobs, newConfiguration, onDelete, postProcessJob, readConfiguration, sanitizeMappings, saveConfiguration, writeConfiguration 
 - 
 
 - 
 
- 
- 
Field Detail
- 
JOB_DECLARATION
public static final BatchJobDeclaration JOB_DECLARATION
 
 - 
 
- 
Method Detail
- 
execute
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
 
- 
getOrCalculateRemovalTime
protected Date getOrCalculateRemovalTime(SetRemovalTimeBatchConfiguration batchConfiguration, HistoricProcessInstanceEntity instance, CommandContext commandContext)
 
- 
addRemovalTimeToHierarchy
protected void addRemovalTimeToHierarchy(String rootProcessInstanceId, Date removalTime, CommandContext commandContext)
 
- 
addRemovalTime
protected void addRemovalTime(String instanceId, Date removalTime, CommandContext commandContext)
 
- 
hasBaseTime
protected boolean hasBaseTime(HistoricProcessInstanceEntity instance, CommandContext commandContext)
 
- 
isEnded
protected boolean isEnded(HistoricProcessInstanceEntity instance)
 
- 
isStrategyStart
protected boolean isStrategyStart(CommandContext commandContext)
 
- 
isStrategyEnd
protected boolean isStrategyEnd(CommandContext commandContext)
 
- 
hasHierarchy
protected boolean hasHierarchy(HistoricProcessInstanceEntity instance)
 
- 
getHistoryRemovalTimeStrategy
protected String getHistoryRemovalTimeStrategy(CommandContext commandContext)
 
- 
findProcessDefinitionById
protected ProcessDefinition findProcessDefinitionById(String processDefinitionId, CommandContext commandContext)
 
- 
isDmnEnabled
protected boolean isDmnEnabled(CommandContext commandContext)
 
- 
calculateRemovalTime
protected Date calculateRemovalTime(HistoricProcessInstanceEntity processInstance, CommandContext commandContext)
 
- 
findByteArrayById
protected ByteArrayEntity findByteArrayById(String byteArrayId, CommandContext commandContext)
 
- 
findProcessInstanceById
protected HistoricProcessInstanceEntity findProcessInstanceById(String instanceId, CommandContext commandContext)
 
- 
getJobDeclaration
public JobDeclaration<BatchJobContext,MessageEntity> 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
protected JsonObjectConverter<SetRemovalTimeBatchConfiguration> getJsonConverterInstance()
- Specified by:
 getJsonConverterInstancein classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
 
- 
getType
public String getType()
 
 - 
 
 -