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 TypeMethodDescriptionvoid
bulkDeleteHistoricProcessInstances
(Collection<String> instanceIds) Performs a bulk delete with the provided process instance ids.Creates a new programmatic query to search forHistoricActivityInstance
s.Creates a new programmatic query to search forHistoricDetail
s.Creates a new programmatic query to search forHistoricProcessInstance
s.org.flowable.task.api.history.HistoricTaskInstanceQuery
Creates a new programmatic query to search forHistoricTaskInstance
s.org.flowable.task.api.history.HistoricTaskLogEntryBuilder
Create new task log entry builder to the log task event without predefined values from the taskorg.flowable.task.api.history.HistoricTaskLogEntryBuilder
createHistoricTaskLogEntryBuilder
(org.flowable.task.api.TaskInfo task) Create new task log entry builder to the log task eventorg.flowable.task.api.history.HistoricTaskLogEntryQuery
Returns a newHistoricTaskLogEntryQuery
that can be used to dynamically query task log entries.org.flowable.variable.api.history.HistoricVariableInstanceQuery
Creates a new programmatic query to search forHistoricVariableInstance
s.creates a native query to search forHistoricActivityInstance
s via SQLReturns a newNativeQuery
for process definitions.creates a native query to search forHistoricProcessInstance
s via SQLorg.flowable.task.service.history.NativeHistoricTaskInstanceQuery
creates a native query to search forHistoricTaskInstance
s via SQLorg.flowable.task.api.history.NativeHistoricTaskLogEntryQuery
Returns a newNativeHistoricTaskLogEntryQuery
forHistoricTaskLogEntry
s.org.flowable.variable.api.history.NativeHistoricVariableInstanceQuery
Returns a newNativeQuery
for process definitions.createProcessInstanceHistoryLogQuery
(String processInstanceId) Allows to retrieve theProcessInstanceHistoryLog
for one process instance.void
deleteHistoricProcessInstance
(String processInstanceId) Deletes historic process instance.void
deleteHistoricTaskInstance
(String taskId) Deletes historic task instance.void
deleteHistoricTaskLogEntry
(long logNumber) Deletes user task log entry by its log numbervoid
Deletes historic identity links, detail info, variable data and entity links for removed process instancesvoid
Deletes historic task and activity data for removed process instancesList<org.flowable.entitylink.api.history.HistoricEntityLink>
getHistoricEntityLinkChildrenForProcessInstance
(String processInstanceId) Retrieves theHistoricEntityLink
s associated with the given process instance.List<org.flowable.entitylink.api.history.HistoricEntityLink>
Retrieves theHistoricEntityLink
s associated with the given task.List<org.flowable.entitylink.api.history.HistoricEntityLink>
getHistoricEntityLinkChildrenWithSameRootAsProcessInstance
(String processInstanceId) Retrieves all theHistoricEntityLink
s associated with same root as the given process instance.List<org.flowable.entitylink.api.history.HistoricEntityLink>
getHistoricEntityLinkParentsForProcessInstance
(String processInstanceId) Retrieves theHistoricEntityLink
s where the given process instance is referenced.List<org.flowable.entitylink.api.history.HistoricEntityLink>
Retrieves theHistoricEntityLink
s where the given task is referenced.List<org.flowable.identitylink.api.history.HistoricIdentityLink>
getHistoricIdentityLinksForProcessInstance
(String processInstanceId) Retrieves theHistoricIdentityLink
s associated with the given process instance.List<org.flowable.identitylink.api.history.HistoricIdentityLink>
Retrieves theHistoricIdentityLink
s associated with the given task.
-
Method Details
-
createHistoricProcessInstanceQuery
HistoricProcessInstanceQuery createHistoricProcessInstanceQuery()Creates a new programmatic query to search forHistoricProcessInstance
s. -
createHistoricActivityInstanceQuery
HistoricActivityInstanceQuery createHistoricActivityInstanceQuery()Creates a new programmatic query to search forHistoricActivityInstance
s. -
createHistoricTaskInstanceQuery
org.flowable.task.api.history.HistoricTaskInstanceQuery createHistoricTaskInstanceQuery()Creates a new programmatic query to search forHistoricTaskInstance
s. -
createHistoricDetailQuery
HistoricDetailQuery createHistoricDetailQuery()Creates a new programmatic query to search forHistoricDetail
s. -
createNativeHistoricDetailQuery
NativeHistoricDetailQuery createNativeHistoricDetailQuery()Returns a newNativeQuery
for process definitions. -
createHistoricVariableInstanceQuery
org.flowable.variable.api.history.HistoricVariableInstanceQuery createHistoricVariableInstanceQuery()Creates a new programmatic query to search forHistoricVariableInstance
s. -
createNativeHistoricVariableInstanceQuery
org.flowable.variable.api.history.NativeHistoricVariableInstanceQuery createNativeHistoricVariableInstanceQuery()Returns a newNativeQuery
for process definitions. -
deleteHistoricTaskInstance
Deletes historic task instance. This might be useful for tasks that aredynamically created
and 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 forHistoricProcessInstance
s via SQL -
createNativeHistoricTaskInstanceQuery
org.flowable.task.service.history.NativeHistoricTaskInstanceQuery createNativeHistoricTaskInstanceQuery()creates a native query to search forHistoricTaskInstance
s via SQL -
createNativeHistoricActivityInstanceQuery
NativeHistoricActivityInstanceQuery createNativeHistoricActivityInstanceQuery()creates a native query to search forHistoricActivityInstance
s via SQL -
getHistoricIdentityLinksForTask
List<org.flowable.identitylink.api.history.HistoricIdentityLink> getHistoricIdentityLinksForTask(String taskId) Retrieves theHistoricIdentityLink
s associated with the given task. Such anIdentityLink
informs 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 toIdentityLink
s which only exist for active tasks. -
getHistoricIdentityLinksForProcessInstance
List<org.flowable.identitylink.api.history.HistoricIdentityLink> getHistoricIdentityLinksForProcessInstance(String processInstanceId) Retrieves theHistoricIdentityLink
s associated with the given process instance. Such anIdentityLink
informs how a certain identity (eg. group or user) is associated with a certain process instance, even if the instance is completed as opposed toIdentityLink
s which only exist for active instances. -
getHistoricEntityLinkChildrenForProcessInstance
List<org.flowable.entitylink.api.history.HistoricEntityLink> getHistoricEntityLinkChildrenForProcessInstance(String processInstanceId) Retrieves theHistoricEntityLink
s associated with the given process instance. -
getHistoricEntityLinkChildrenWithSameRootAsProcessInstance
List<org.flowable.entitylink.api.history.HistoricEntityLink> getHistoricEntityLinkChildrenWithSameRootAsProcessInstance(String processInstanceId) Retrieves all theHistoricEntityLink
s associated with same root as the given process instance. -
getHistoricEntityLinkChildrenForTask
List<org.flowable.entitylink.api.history.HistoricEntityLink> getHistoricEntityLinkChildrenForTask(String taskId) Retrieves theHistoricEntityLink
s associated with the given task. -
getHistoricEntityLinkParentsForProcessInstance
List<org.flowable.entitylink.api.history.HistoricEntityLink> getHistoricEntityLinkParentsForProcessInstance(String processInstanceId) Retrieves theHistoricEntityLink
s where the given process instance is referenced. -
getHistoricEntityLinkParentsForTask
List<org.flowable.entitylink.api.history.HistoricEntityLink> getHistoricEntityLinkParentsForTask(String taskId) Retrieves theHistoricEntityLink
s where the given task is referenced. -
createProcessInstanceHistoryLogQuery
Allows to retrieve theProcessInstanceHistoryLog
for 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
org.flowable.task.api.history.HistoricTaskLogEntryBuilder createHistoricTaskLogEntryBuilder(org.flowable.task.api.TaskInfo task) Create new task log entry builder to the log task event- Parameters:
task
- to which is log related to
-
createHistoricTaskLogEntryBuilder
org.flowable.task.api.history.HistoricTaskLogEntryBuilder createHistoricTaskLogEntryBuilder()Create new task log entry builder to the log task event without predefined values from the task -
createHistoricTaskLogEntryQuery
org.flowable.task.api.history.HistoricTaskLogEntryQuery createHistoricTaskLogEntryQuery()Returns a newHistoricTaskLogEntryQuery
that can be used to dynamically query task log entries. -
createNativeHistoricTaskLogEntryQuery
org.flowable.task.api.history.NativeHistoricTaskLogEntryQuery createNativeHistoricTaskLogEntryQuery()Returns a newNativeHistoricTaskLogEntryQuery
forHistoricTaskLogEntry
s.
-