Package org.flowable.engine
Interface HistoryService
- All Known Implementing Classes:
HistoryServiceImpl
public interface HistoryService
Service exposing information about ongoing and past process instances. This is different from the runtime information in the sense that this runtime information only contains the actual runtime
state at any given moment and it is optimized for runtime process execution performance. The history information is optimized for easy querying and remains permanent in the persistent storage.
- Author:
- Christian Stettler, Tom Baeyens, Joram Barrez
-
Method Summary
Modifier and TypeMethodDescriptionvoidbulkDeleteHistoricProcessInstances(Collection<String> instanceIds) Performs a bulk delete with the provided process instance ids.Creates a new programmatic query to search forHistoricActivityInstances.Creates a new programmatic query to search forHistoricDetails.Creates a new programmatic query to search forHistoricProcessInstances.Creates a new programmatic query to search forHistoricTaskInstances.Create new task log entry builder to the log task event without predefined values from the taskCreate new task log entry builder to the log task eventReturns a newHistoricTaskLogEntryQuerythat can be used to dynamically query task log entries.Creates a new programmatic query to search forHistoricVariableInstances.creates a native query to search forHistoricActivityInstances via SQLReturns a newNativeQueryfor process definitions.creates a native query to search forHistoricProcessInstances via SQLcreates a native query to search forHistoricTaskInstances via SQLReturns a newNativeHistoricTaskLogEntryQueryforHistoricTaskLogEntrys.Returns a newNativeQueryfor process definitions.createProcessInstanceHistoryLogQuery(String processInstanceId) Allows to retrieve theProcessInstanceHistoryLogfor one process instance.voiddeleteHistoricProcessInstance(String processInstanceId) Deletes historic process instance.voiddeleteHistoricTaskInstance(String taskId) Deletes historic task instance.voiddeleteHistoricTaskLogEntry(long logNumber) Deletes user task log entry by its log numbervoidDeletes historic identity links, detail info, variable data and entity links for removed process instancesvoidDeletes historic task and activity data for removed process instancesgetHistoricEntityLinkChildrenForProcessInstance(String processInstanceId) Retrieves theHistoricEntityLinks associated with the given process instance.Retrieves theHistoricEntityLinks associated with the given task.getHistoricEntityLinkChildrenWithSameRootAsProcessInstance(String processInstanceId) Retrieves all theHistoricEntityLinks associated with same root as the given process instance.getHistoricEntityLinkParentsForProcessInstance(String processInstanceId) Retrieves theHistoricEntityLinks where the given process instance is referenced.Retrieves theHistoricEntityLinks where the given task is referenced.getHistoricIdentityLinksForProcessInstance(String processInstanceId) Retrieves theHistoricIdentityLinks associated with the given process instance.Retrieves theHistoricIdentityLinks associated with the given task.
-
Method Details
-
createHistoricProcessInstanceQuery
HistoricProcessInstanceQuery createHistoricProcessInstanceQuery()Creates a new programmatic query to search forHistoricProcessInstances. -
createHistoricActivityInstanceQuery
HistoricActivityInstanceQuery createHistoricActivityInstanceQuery()Creates a new programmatic query to search forHistoricActivityInstances. -
createHistoricTaskInstanceQuery
HistoricTaskInstanceQuery createHistoricTaskInstanceQuery()Creates a new programmatic query to search forHistoricTaskInstances. -
createHistoricDetailQuery
HistoricDetailQuery createHistoricDetailQuery()Creates a new programmatic query to search forHistoricDetails. -
createNativeHistoricDetailQuery
NativeHistoricDetailQuery createNativeHistoricDetailQuery()Returns a newNativeQueryfor process definitions. -
createHistoricVariableInstanceQuery
HistoricVariableInstanceQuery createHistoricVariableInstanceQuery()Creates a new programmatic query to search forHistoricVariableInstances. -
createNativeHistoricVariableInstanceQuery
NativeHistoricVariableInstanceQuery createNativeHistoricVariableInstanceQuery()Returns a newNativeQueryfor process definitions. -
deleteHistoricTaskInstance
Deletes historic task instance. This might be useful for tasks that aredynamically createdand thencompleted. If the historic task instance doesn't exist, no exception is thrown and the method returns normal. -
deleteHistoricProcessInstance
Deletes historic process instance. All historic activities, historic task and historic details (variable updates, form properties) are deleted as well. -
bulkDeleteHistoricProcessInstances
Performs a bulk delete with the provided process instance ids. All historic activities, historic tasks and historic details (variable updates, form properties) are deleted as well. -
deleteTaskAndActivityDataOfRemovedHistoricProcessInstances
void deleteTaskAndActivityDataOfRemovedHistoricProcessInstances()Deletes historic task and activity data for removed process instances -
deleteRelatedDataOfRemovedHistoricProcessInstances
void deleteRelatedDataOfRemovedHistoricProcessInstances()Deletes historic identity links, detail info, variable data and entity links for removed process instances -
createNativeHistoricProcessInstanceQuery
NativeHistoricProcessInstanceQuery createNativeHistoricProcessInstanceQuery()creates a native query to search forHistoricProcessInstances via SQL -
createNativeHistoricTaskInstanceQuery
NativeHistoricTaskInstanceQuery createNativeHistoricTaskInstanceQuery()creates a native query to search forHistoricTaskInstances via SQL -
createNativeHistoricActivityInstanceQuery
NativeHistoricActivityInstanceQuery createNativeHistoricActivityInstanceQuery()creates a native query to search forHistoricActivityInstances via SQL -
getHistoricIdentityLinksForTask
Retrieves theHistoricIdentityLinks associated with the given task. Such anIdentityLinkinforms how a certain identity (eg. group or user) is associated with a certain task (eg. as candidate, assignee, etc.), even if the task is completed as opposed toIdentityLinks which only exist for active tasks. -
getHistoricIdentityLinksForProcessInstance
Retrieves theHistoricIdentityLinks associated with the given process instance. Such anIdentityLinkinforms how a certain identity (eg. group or user) is associated with a certain process instance, even if the instance is completed as opposed toIdentityLinks which only exist for active instances. -
getHistoricEntityLinkChildrenForProcessInstance
Retrieves theHistoricEntityLinks associated with the given process instance. -
getHistoricEntityLinkChildrenWithSameRootAsProcessInstance
List<HistoricEntityLink> getHistoricEntityLinkChildrenWithSameRootAsProcessInstance(String processInstanceId) Retrieves all theHistoricEntityLinks associated with same root as the given process instance. -
getHistoricEntityLinkChildrenForTask
Retrieves theHistoricEntityLinks associated with the given task. -
getHistoricEntityLinkParentsForProcessInstance
Retrieves theHistoricEntityLinks where the given process instance is referenced. -
getHistoricEntityLinkParentsForTask
Retrieves theHistoricEntityLinks where the given task is referenced. -
createProcessInstanceHistoryLogQuery
Allows to retrieve theProcessInstanceHistoryLogfor one process instance. -
deleteHistoricTaskLogEntry
void deleteHistoricTaskLogEntry(long logNumber) Deletes user task log entry by its log number- Parameters:
logNumber- user task log entry identifier
-
createHistoricTaskLogEntryBuilder
Create new task log entry builder to the log task event- Parameters:
task- to which is log related to
-
createHistoricTaskLogEntryBuilder
HistoricTaskLogEntryBuilder createHistoricTaskLogEntryBuilder()Create new task log entry builder to the log task event without predefined values from the task -
createHistoricTaskLogEntryQuery
HistoricTaskLogEntryQuery createHistoricTaskLogEntryQuery()Returns a newHistoricTaskLogEntryQuerythat can be used to dynamically query task log entries. -
createNativeHistoricTaskLogEntryQuery
NativeHistoricTaskLogEntryQuery createNativeHistoricTaskLogEntryQuery()Returns a newNativeHistoricTaskLogEntryQueryforHistoricTaskLogEntrys.
-