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)
SetRemovalTimeToHistoricProcessInstancesBuilder
byQuery
in interface SetRemovalTimeToHistoricProcessInstancesBuilder
query
- to be evaluated.public SetRemovalTimeToHistoricProcessInstancesBuilder byIds(String... ids)
SetRemovalTimeToHistoricProcessInstancesBuilder
byIds
in interface SetRemovalTimeToHistoricProcessInstancesBuilder
ids
- supposed to be affected.public SetRemovalTimeToHistoricProcessInstancesBuilder absoluteRemovalTime(Date removalTime)
SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder
absoluteRemovalTime
in interface SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder
removalTime
- supposed to be set to historic entities.public SetRemovalTimeToHistoricProcessInstancesBuilder calculatedRemovalTime()
SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder
Calculates 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 SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder
public SetRemovalTimeToHistoricProcessInstancesBuilder clearedRemovalTime()
SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder
Sets the removal time to null
.
clearedRemovalTime
in interface SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder
public SetRemovalTimeToHistoricProcessInstancesBuilder hierarchical()
SetRemovalTimeToHistoricProcessInstancesBuilder
null
,
the hierarchy is ignored. This is the case for instances that were started with a version
prior 7.10.hierarchical
in interface SetRemovalTimeToHistoricProcessInstancesBuilder
public Batch executeAsync()
SetRemovalTimeToHistoricProcessInstancesBuilder
executeAsync
in interface SetRemovalTimeToHistoricProcessInstancesBuilder
public HistoricProcessInstanceQuery getQuery()
public Date getRemovalTime()
public SetRemovalTimeToHistoricProcessInstancesBuilderImpl.Mode getMode()
public boolean isHierarchical()
Copyright © 2022. All rights reserved.