Class SetRemovalTimeToHistoricDecisionInstancesBuilderImpl
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.history.SetRemovalTimeToHistoricDecisionInstancesBuilderImpl
 
- 
- All Implemented Interfaces:
- SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder,- SetRemovalTimeToHistoricDecisionInstancesBuilder
 
 public class SetRemovalTimeToHistoricDecisionInstancesBuilderImpl extends java.lang.Object implements SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder - Author:
- Tassilo Weidner
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSetRemovalTimeToHistoricDecisionInstancesBuilderImpl.Mode
 - 
Field SummaryFields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected java.util.List<java.lang.String>idsprotected booleanisHierarchicalprotected SetRemovalTimeToHistoricDecisionInstancesBuilderImpl.Modemodeprotected HistoricDecisionInstanceQueryqueryprotected java.util.DateremovalTime
 - 
Constructor SummaryConstructors Constructor Description SetRemovalTimeToHistoricDecisionInstancesBuilderImpl(CommandExecutor commandExecutor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SetRemovalTimeToHistoricDecisionInstancesBuilderabsoluteRemovalTime(java.util.Date removalTime)Sets the removal time to an absolute date.SetRemovalTimeToHistoricDecisionInstancesBuilderbyIds(java.lang.String... ids)Selects historic process instances by the given ids.SetRemovalTimeToHistoricDecisionInstancesBuilderbyQuery(HistoricDecisionInstanceQuery query)Selects historic decision instances by the given query.SetRemovalTimeToHistoricDecisionInstancesBuildercalculatedRemovalTime()Calculates the removal time dynamically based on the respective decision definition time to live and the engine's removal time strategy.SetRemovalTimeToHistoricDecisionInstancesBuilderclearedRemovalTime()Sets the removal time tonull.BatchexecuteAsync()Sets the removal time asynchronously as batch.java.util.List<java.lang.String>getIds()SetRemovalTimeToHistoricDecisionInstancesBuilderImpl.ModegetMode()HistoricDecisionInstanceQuerygetQuery()java.util.DategetRemovalTime()SetRemovalTimeToHistoricDecisionInstancesBuilderhierarchical()Takes additionally historic decision instances into account that are part of the hierarchy of the given historic decision instances.booleanisHierarchical()
 
- 
- 
- 
Field Detail- 
queryprotected HistoricDecisionInstanceQuery query 
 - 
idsprotected java.util.List<java.lang.String> ids 
 - 
removalTimeprotected java.util.Date removalTime 
 - 
modeprotected SetRemovalTimeToHistoricDecisionInstancesBuilderImpl.Mode mode 
 - 
isHierarchicalprotected boolean isHierarchical 
 - 
commandExecutorprotected CommandExecutor commandExecutor 
 
- 
 - 
Constructor Detail- 
SetRemovalTimeToHistoricDecisionInstancesBuilderImplpublic SetRemovalTimeToHistoricDecisionInstancesBuilderImpl(CommandExecutor commandExecutor) 
 
- 
 - 
Method Detail- 
byQuerypublic SetRemovalTimeToHistoricDecisionInstancesBuilder byQuery(HistoricDecisionInstanceQuery query) Description copied from interface:SetRemovalTimeToHistoricDecisionInstancesBuilderSelects historic decision instances by the given query.- Specified by:
- byQueryin interface- SetRemovalTimeToHistoricDecisionInstancesBuilder
- Parameters:
- query- to be evaluated.
- Returns:
- the builder.
 
 - 
byIdspublic SetRemovalTimeToHistoricDecisionInstancesBuilder byIds(java.lang.String... ids) Description copied from interface:SetRemovalTimeToHistoricDecisionInstancesBuilderSelects historic process instances by the given ids.- Specified by:
- byIdsin interface- SetRemovalTimeToHistoricDecisionInstancesBuilder
- Parameters:
- ids- supposed to be affected.
- Returns:
- the builder.
 
 - 
absoluteRemovalTimepublic SetRemovalTimeToHistoricDecisionInstancesBuilder absoluteRemovalTime(java.util.Date removalTime) Description copied from interface:SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilderSets the removal time to an absolute date.- Specified by:
- absoluteRemovalTimein interface- SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder
- Parameters:
- removalTime- supposed to be set to historic entities.
- Returns:
- the builder.
 
 - 
calculatedRemovalTimepublic SetRemovalTimeToHistoricDecisionInstancesBuilder calculatedRemovalTime() Description copied from interface:SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilderCalculates the removal time dynamically based on the respective decision definition time to live and the engine's removal time strategy. In case SetRemovalTimeToHistoricDecisionInstancesBuilder.hierarchical()is enabled, the removal time is being calculated based on the base time and time to live of the historic root decision instance.- Specified by:
- calculatedRemovalTimein interface- SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder
- Returns:
- the builder.
 
 - 
clearedRemovalTimepublic SetRemovalTimeToHistoricDecisionInstancesBuilder clearedRemovalTime() Description copied from interface:SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilderSets the removal time to null.- Specified by:
- clearedRemovalTimein interface- SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder
- Returns:
- the builder.
 
 - 
hierarchicalpublic SetRemovalTimeToHistoricDecisionInstancesBuilder hierarchical() Description copied from interface:SetRemovalTimeToHistoricDecisionInstancesBuilderTakes additionally historic decision instances into account that are part of the hierarchy of the given historic decision instances. If the root decision instance id of the given historic decision 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- SetRemovalTimeToHistoricDecisionInstancesBuilder
- Returns:
- the builder.
 
 - 
executeAsyncpublic Batch executeAsync() Description copied from interface:SetRemovalTimeToHistoricDecisionInstancesBuilderSets 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- SetRemovalTimeToHistoricDecisionInstancesBuilder
- Returns:
- the batch which sets the removal time asynchronously.
 
 - 
getQuerypublic HistoricDecisionInstanceQuery getQuery() 
 - 
getIdspublic java.util.List<java.lang.String> getIds() 
 - 
getRemovalTimepublic java.util.Date getRemovalTime() 
 - 
getModepublic SetRemovalTimeToHistoricDecisionInstancesBuilderImpl.Mode getMode() 
 - 
isHierarchicalpublic boolean isHierarchical() 
 
- 
 
-