Interface HistoryRemovalTimeProvider
- All Known Implementing Classes:
DefaultHistoryRemovalTimeProvider
public interface HistoryRemovalTimeProvider
The provider is either invoked on root process instance start or end
based on the selected history removal time strategy.
- Author:
- Tassilo Weidner
-
Method Summary
Modifier and TypeMethodDescriptioncalculateRemovalTime
(HistoricBatchEntity historicBatch) Calculates the removal time of historic batches.calculateRemovalTime
(HistoricDecisionInstanceEntity historicRootDecisionInstance, DecisionDefinition decisionDefinition) Calculates the removal time of historic entities related to decisions.calculateRemovalTime
(HistoricProcessInstanceEventEntity historicRootProcessInstance, ProcessDefinition processDefinition) Calculates the removal time of historic entities related to processes.
-
Method Details
-
calculateRemovalTime
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()
isnull
END: 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
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
Calculates the removal time of historic batches. START: the removal time is set for the historic batch entity on start.HistoricBatchEntity.getEndTime()
isnull
END: 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
-