Class DecisionSetRemovalTimeJobHandler
java.lang.Object
org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
org.camunda.bpm.engine.impl.batch.removaltime.DecisionSetRemovalTimeJobHandler
- All Implemented Interfaces:
BatchJobHandler<SetRemovalTimeBatchConfiguration>
,OptimisticLockingListener
,JobHandler<BatchJobConfiguration>
public class DecisionSetRemovalTimeJobHandler
extends AbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
- Author:
- Tassilo Weidner
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addRemovalTime
(String instanceId, Date removalTime, CommandContext commandContext) protected void
addRemovalTimeToHierarchy
(String instanceId, Date removalTime, CommandContext commandContext) protected Date
calculateRemovalTime
(HistoricDecisionInstanceEntity decisionInstance, CommandContext commandContext) protected SetRemovalTimeBatchConfiguration
createJobConfiguration
(SetRemovalTimeBatchConfiguration configuration, List<String> decisionInstanceIds) void
executeHandler
(SetRemovalTimeBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) protected ByteArrayEntity
findByteArrayById
(String byteArrayId, CommandContext commandContext) protected DecisionDefinition
findDecisionDefinitionById
(String decisionDefinitionId, CommandContext commandContext) protected HistoricDecisionInstanceEntity
findDecisionInstanceById
(String instanceId, CommandContext commandContext) protected String
getHistoryRemovalTimeStrategy
(CommandContext commandContext) Get the job declaration for batch jobs.protected SetRemovalTimeJsonConverter
protected Date
getOrCalculateRemovalTime
(SetRemovalTimeBatchConfiguration batchConfiguration, HistoricDecisionInstanceEntity instance, CommandContext commandContext) protected String
getType()
protected boolean
hasBaseTime
(CommandContext commandContext) protected boolean
isDmnEnabled
(CommandContext commandContext) protected boolean
isStrategyEnd
(CommandContext commandContext) protected boolean
isStrategyStart
(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
-
DecisionSetRemovalTimeJobHandler
public DecisionSetRemovalTimeJobHandler()
-
-
Method Details
-
executeHandler
public void executeHandler(SetRemovalTimeBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) - Specified by:
executeHandler
in classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
-
getRootDecisionInstance
-
getOrCalculateRemovalTime
protected Date getOrCalculateRemovalTime(SetRemovalTimeBatchConfiguration batchConfiguration, HistoricDecisionInstanceEntity instance, CommandContext commandContext) -
addRemovalTimeToHierarchy
protected void addRemovalTimeToHierarchy(String instanceId, Date removalTime, CommandContext commandContext) -
addRemovalTime
-
hasBaseTime
-
isStrategyStart
-
isStrategyEnd
-
getHistoryRemovalTimeStrategy
-
findDecisionDefinitionById
protected DecisionDefinition findDecisionDefinitionById(String decisionDefinitionId, CommandContext commandContext) -
isDmnEnabled
-
calculateRemovalTime
protected Date calculateRemovalTime(HistoricDecisionInstanceEntity decisionInstance, CommandContext commandContext) -
findByteArrayById
-
findDecisionInstanceById
protected HistoricDecisionInstanceEntity findDecisionInstanceById(String instanceId, CommandContext commandContext) -
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> decisionInstanceIds) - Specified by:
createJobConfiguration
in classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
-
getJsonConverterInstance
- Specified by:
getJsonConverterInstance
in classAbstractBatchJobHandler<SetRemovalTimeBatchConfiguration>
-
getType
-