public class DefaultHistoryRemovalTimeProvider extends Object implements HistoryRemovalTimeProvider
Constructor and Description |
---|
DefaultHistoryRemovalTimeProvider() |
Modifier and Type | Method and Description |
---|---|
Date |
calculateRemovalTime(HistoricBatchEntity historicBatch)
Calculates the removal time of historic batches.
|
Date |
calculateRemovalTime(HistoricDecisionInstanceEntity historicRootDecisionInstance,
DecisionDefinition decisionDefinition)
Calculates the removal time of historic entities related to decisions.
|
Date |
calculateRemovalTime(HistoricProcessInstanceEventEntity historicRootProcessInstance,
ProcessDefinition processDefinition)
Calculates the removal time of historic entities related to processes.
|
protected Date |
determineRemovalTime(Date initTime,
Integer timeToLive) |
protected Integer |
getTTLByBatchOperation(String batchOperation) |
protected boolean |
isBatchEnded(HistoricBatchEntity historicBatch) |
protected boolean |
isBatchRunning(HistoricBatchEntity historicBatch) |
protected boolean |
isProcessInstanceEnded(HistoricProcessInstanceEventEntity historicProcessInstance) |
protected boolean |
isProcessInstanceRunning(HistoricProcessInstanceEventEntity historicProcessInstance) |
public Date calculateRemovalTime(HistoricProcessInstanceEventEntity historicRootProcessInstance, ProcessDefinition processDefinition)
HistoryRemovalTimeProvider
HistoricScopeInstanceEvent.getEndTime()
is null
END: the removal time is updated simultaneously for all historic entities which belong to
the root process instance when it ends.
HistoricScopeInstanceEvent.getEndTime()
is not null
calculateRemovalTime
in interface HistoryRemovalTimeProvider
historicRootProcessInstance
- which is either in state running or endedprocessDefinition
- of the historic root process instancepublic Date calculateRemovalTime(HistoricDecisionInstanceEntity historicRootDecisionInstance, DecisionDefinition decisionDefinition)
HistoryRemovalTimeProvider
calculateRemovalTime
in interface HistoryRemovalTimeProvider
decisionDefinition
- of the historic root decision instancepublic Date calculateRemovalTime(HistoricBatchEntity historicBatch)
HistoryRemovalTimeProvider
HistoricBatchEntity.getEndTime()
is null
END: the removal time is set for the historic batch entity on end.
HistoricBatchEntity.getEndTime()
is not null
calculateRemovalTime
in interface HistoryRemovalTimeProvider
historicBatch
- which is either in state running or endedprotected boolean isBatchRunning(HistoricBatchEntity historicBatch)
protected boolean isBatchEnded(HistoricBatchEntity historicBatch)
protected boolean isProcessInstanceRunning(HistoricProcessInstanceEventEntity historicProcessInstance)
protected boolean isProcessInstanceEnded(HistoricProcessInstanceEventEntity historicProcessInstance)
Copyright © 2019. All rights reserved.