public class SetRemovalTimeToHistoricDecisionInstancesBuilderImpl extends Object implements SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder
Modifier and Type | Class and Description |
---|---|
static class |
SetRemovalTimeToHistoricDecisionInstancesBuilderImpl.Mode |
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected List<String> |
ids |
protected boolean |
isHierarchical |
protected SetRemovalTimeToHistoricDecisionInstancesBuilderImpl.Mode |
mode |
protected HistoricDecisionInstanceQuery |
query |
protected Date |
removalTime |
Constructor and Description |
---|
SetRemovalTimeToHistoricDecisionInstancesBuilderImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
SetRemovalTimeToHistoricDecisionInstancesBuilder |
absoluteRemovalTime(Date removalTime)
Sets the removal time to an absolute date.
|
SetRemovalTimeToHistoricDecisionInstancesBuilder |
byIds(String... ids)
Selects historic process instances by the given ids.
|
SetRemovalTimeToHistoricDecisionInstancesBuilder |
byQuery(HistoricDecisionInstanceQuery query)
Selects historic decision instances by the given query.
|
SetRemovalTimeToHistoricDecisionInstancesBuilder |
calculatedRemovalTime()
Calculates the removal time dynamically based on the respective decision definition time to
live and the engine's removal time strategy.
|
SetRemovalTimeToHistoricDecisionInstancesBuilder |
clearedRemovalTime()
Sets the removal time to
null . |
Batch |
executeAsync()
Sets the removal time asynchronously as batch.
|
List<String> |
getIds() |
SetRemovalTimeToHistoricDecisionInstancesBuilderImpl.Mode |
getMode() |
HistoricDecisionInstanceQuery |
getQuery() |
Date |
getRemovalTime() |
SetRemovalTimeToHistoricDecisionInstancesBuilder |
hierarchical()
Takes additionally historic decision instances into account that are part of
the hierarchy of the given historic decision instances.
|
boolean |
isHierarchical() |
protected HistoricDecisionInstanceQuery query
protected Date removalTime
protected SetRemovalTimeToHistoricDecisionInstancesBuilderImpl.Mode mode
protected boolean isHierarchical
protected CommandExecutor commandExecutor
public SetRemovalTimeToHistoricDecisionInstancesBuilderImpl(CommandExecutor commandExecutor)
public SetRemovalTimeToHistoricDecisionInstancesBuilder byQuery(HistoricDecisionInstanceQuery query)
SetRemovalTimeToHistoricDecisionInstancesBuilder
byQuery
in interface SetRemovalTimeToHistoricDecisionInstancesBuilder
query
- to be evaluated.public SetRemovalTimeToHistoricDecisionInstancesBuilder byIds(String... ids)
SetRemovalTimeToHistoricDecisionInstancesBuilder
byIds
in interface SetRemovalTimeToHistoricDecisionInstancesBuilder
ids
- supposed to be affected.public SetRemovalTimeToHistoricDecisionInstancesBuilder absoluteRemovalTime(Date removalTime)
SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder
absoluteRemovalTime
in interface SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder
removalTime
- supposed to be set to historic entities.public SetRemovalTimeToHistoricDecisionInstancesBuilder calculatedRemovalTime()
SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder
Calculates 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.
calculatedRemovalTime
in interface SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder
public SetRemovalTimeToHistoricDecisionInstancesBuilder clearedRemovalTime()
SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder
Sets the removal time to null
.
clearedRemovalTime
in interface SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder
public SetRemovalTimeToHistoricDecisionInstancesBuilder hierarchical()
SetRemovalTimeToHistoricDecisionInstancesBuilder
null
,
the hierarchy is ignored. This is the case for instances that were started with a version
prior 7.10.hierarchical
in interface SetRemovalTimeToHistoricDecisionInstancesBuilder
public Batch executeAsync()
SetRemovalTimeToHistoricDecisionInstancesBuilder
executeAsync
in interface SetRemovalTimeToHistoricDecisionInstancesBuilder
public HistoricDecisionInstanceQuery getQuery()
public Date getRemovalTime()
public SetRemovalTimeToHistoricDecisionInstancesBuilderImpl.Mode getMode()
public boolean isHierarchical()
Copyright © 2021. All rights reserved.