Interface HistoryRemovalTimeProvider
-
- All Known Implementing Classes:
DefaultHistoryRemovalTimeProvider
public interface HistoryRemovalTimeProviderThe provider is either invoked on root process instance start or end based on the selected history removal time strategy.- Author:
- Tassilo Weidner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.DatecalculateRemovalTime(HistoricBatchEntity historicBatch)Calculates the removal time of historic batches.java.util.DatecalculateRemovalTime(HistoricDecisionInstanceEntity historicRootDecisionInstance, DecisionDefinition decisionDefinition)Calculates the removal time of historic entities related to decisions.java.util.DatecalculateRemovalTime(HistoricProcessInstanceEventEntity historicRootProcessInstance, ProcessDefinition processDefinition)Calculates the removal time of historic entities related to processes.
-
-
-
Method Detail
-
calculateRemovalTime
java.util.Date calculateRemovalTime(HistoricProcessInstanceEventEntity historicRootProcessInstance, ProcessDefinition processDefinition)
Calculates the removal time of historic entities related to processes. START: the removal time is set for each historic entity separately on occurrence (creation).HistoricScopeInstanceEvent.getEndTime()isnullEND: the removal time is updated simultaneously for all historic entities which belong to the root process instance when it ends.HistoricScopeInstanceEvent.getEndTime()is notnull- Parameters:
historicRootProcessInstance- which is either in state running or endedprocessDefinition- of the historic root process instance- Returns:
- the removal time for historic process instances
-
calculateRemovalTime
java.util.Date calculateRemovalTime(HistoricDecisionInstanceEntity historicRootDecisionInstance, DecisionDefinition decisionDefinition)
Calculates the removal time of historic entities related to decisions.- Parameters:
historicRootDecisionInstance-decisionDefinition- of the historic root decision instance- Returns:
- the removal time for historic decision instances
-
calculateRemovalTime
java.util.Date calculateRemovalTime(HistoricBatchEntity historicBatch)
Calculates the removal time of historic batches. START: the removal time is set for the historic batch entity on start.HistoricBatchEntity.getEndTime()isnullEND: the removal time is set for the historic batch entity on end.HistoricBatchEntity.getEndTime()is notnull- Parameters:
historicBatch- which is either in state running or ended- Returns:
- the removal time of historic entities
-
-