Class SetRemovalTimeToHistoricProcessInstancesBuilderImpl
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.history.SetRemovalTimeToHistoricProcessInstancesBuilderImpl
 
- 
- All Implemented Interfaces:
- SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder,- SetRemovalTimeToHistoricProcessInstancesBuilder
 
 public class SetRemovalTimeToHistoricProcessInstancesBuilderImpl extends java.lang.Object implements SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder - Author:
- Tassilo Weidner
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSetRemovalTimeToHistoricProcessInstancesBuilderImpl.Mode
 - 
Field SummaryFields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected java.util.List<java.lang.String>idsprotected booleanisHierarchicalprotected SetRemovalTimeToHistoricProcessInstancesBuilderImpl.Modemodeprotected HistoricProcessInstanceQueryqueryprotected java.util.DateremovalTime
 - 
Constructor SummaryConstructors Constructor Description SetRemovalTimeToHistoricProcessInstancesBuilderImpl(CommandExecutor commandExecutor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SetRemovalTimeToHistoricProcessInstancesBuilderabsoluteRemovalTime(java.util.Date removalTime)Sets the removal time to an absolute date.SetRemovalTimeToHistoricProcessInstancesBuilderbyIds(java.lang.String... ids)Selects historic decision instances by the given ids.SetRemovalTimeToHistoricProcessInstancesBuilderbyQuery(HistoricProcessInstanceQuery query)Selects historic process instances by the given query.SetRemovalTimeToHistoricProcessInstancesBuildercalculatedRemovalTime()Calculates the removal time dynamically based on the respective process definition time to live and the process engine's removal time strategy.SetRemovalTimeToHistoricProcessInstancesBuilderclearedRemovalTime()Sets the removal time tonull.BatchexecuteAsync()Sets the removal time asynchronously as batch.java.util.List<java.lang.String>getIds()SetRemovalTimeToHistoricProcessInstancesBuilderImpl.ModegetMode()HistoricProcessInstanceQuerygetQuery()java.util.DategetRemovalTime()SetRemovalTimeToHistoricProcessInstancesBuilderhierarchical()Takes additionally those historic process instances into account that are part of the hierarchy of the given historic process instance.booleanisHierarchical()
 
- 
- 
- 
Field Detail- 
queryprotected HistoricProcessInstanceQuery query 
 - 
idsprotected java.util.List<java.lang.String> ids 
 - 
removalTimeprotected java.util.Date removalTime 
 - 
modeprotected SetRemovalTimeToHistoricProcessInstancesBuilderImpl.Mode mode 
 - 
isHierarchicalprotected boolean isHierarchical 
 - 
commandExecutorprotected CommandExecutor commandExecutor 
 
- 
 - 
Constructor Detail- 
SetRemovalTimeToHistoricProcessInstancesBuilderImplpublic SetRemovalTimeToHistoricProcessInstancesBuilderImpl(CommandExecutor commandExecutor) 
 
- 
 - 
Method Detail- 
byQuerypublic SetRemovalTimeToHistoricProcessInstancesBuilder byQuery(HistoricProcessInstanceQuery query) Description copied from interface:SetRemovalTimeToHistoricProcessInstancesBuilderSelects historic process instances by the given query.- Specified by:
- byQueryin interface- SetRemovalTimeToHistoricProcessInstancesBuilder
- Parameters:
- query- to be evaluated.
- Returns:
- the builder.
 
 - 
byIdspublic SetRemovalTimeToHistoricProcessInstancesBuilder byIds(java.lang.String... ids) Description copied from interface:SetRemovalTimeToHistoricProcessInstancesBuilderSelects historic decision instances by the given ids.- Specified by:
- byIdsin interface- SetRemovalTimeToHistoricProcessInstancesBuilder
- Parameters:
- ids- supposed to be affected.
- Returns:
- the builder.
 
 - 
absoluteRemovalTimepublic SetRemovalTimeToHistoricProcessInstancesBuilder absoluteRemovalTime(java.util.Date removalTime) Description copied from interface:SetRemovalTimeSelectModeForHistoricProcessInstancesBuilderSets the removal time to an absolute date.- Specified by:
- absoluteRemovalTimein interface- SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder
- Parameters:
- removalTime- supposed to be set to historic entities.
- Returns:
- the builder.
 
 - 
calculatedRemovalTimepublic SetRemovalTimeToHistoricProcessInstancesBuilder calculatedRemovalTime() Description copied from interface:SetRemovalTimeSelectModeForHistoricProcessInstancesBuilderCalculates the removal time dynamically based on the respective process definition time to live and the process engine's removal time strategy. In case SetRemovalTimeToHistoricProcessInstancesBuilder.hierarchical()is enabled, the removal time is being calculated based on the base time and time to live of the historic root process instance.- Specified by:
- calculatedRemovalTimein interface- SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder
- Returns:
- the builder.
 
 - 
clearedRemovalTimepublic SetRemovalTimeToHistoricProcessInstancesBuilder clearedRemovalTime() Description copied from interface:SetRemovalTimeSelectModeForHistoricProcessInstancesBuilderSets the removal time to null.- Specified by:
- clearedRemovalTimein interface- SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder
- Returns:
- the builder.
 
 - 
hierarchicalpublic SetRemovalTimeToHistoricProcessInstancesBuilder hierarchical() Description copied from interface:SetRemovalTimeToHistoricProcessInstancesBuilderTakes additionally those historic process instances into account that are part of the hierarchy of the given historic process instance. If the root process instance id of the given historic process instance isnull, the hierarchy is ignored. This is the case for instances that were started with a version prior 7.10.- Specified by:
- hierarchicalin interface- SetRemovalTimeToHistoricProcessInstancesBuilder
- Returns:
- the builder.
 
 - 
executeAsyncpublic Batch executeAsync() Description copied from interface:SetRemovalTimeToHistoricProcessInstancesBuilderSets the removal time asynchronously as batch. The returned batch can be used to track the progress of setting a removal time.- Specified by:
- executeAsyncin interface- SetRemovalTimeToHistoricProcessInstancesBuilder
- Returns:
- the batch which sets the removal time asynchronously.
 
 - 
getQuerypublic HistoricProcessInstanceQuery getQuery() 
 - 
getIdspublic java.util.List<java.lang.String> getIds() 
 - 
getRemovalTimepublic java.util.Date getRemovalTime() 
 - 
getModepublic SetRemovalTimeToHistoricProcessInstancesBuilderImpl.Mode getMode() 
 - 
isHierarchicalpublic boolean isHierarchical() 
 
- 
 
-