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