Package org.flowable.cmmn.api
Interface CmmnHistoryService
- All Known Implementing Classes:
CmmnHistoryServiceImpl
public interface CmmnHistoryService
- Author:
- Joram Barrez
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bulkDeleteHistoricCaseInstances
(Collection<String> caseInstanceIds) createCaseReactivationBuilder
(String caseInstanceId) Creates a new case reactivation builder used to reactivate an archived / finished case with various options.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 newHistoricTaskLogEntryQuery
that can be used to dynamically query task log entries.Returns a newNativeHistoricTaskLogEntryQuery
forHistoricTaskLogEntry
s.void
deleteHistoricCaseInstance
(String caseInstanceId) void
deleteHistoricTaskInstance
(String taskId) Deletes historic task instance.void
deleteHistoricTaskLogEntry
(long logNumber) Deletes user task log entry by its log numbergetHistoricEntityLinkChildrenForCaseInstance
(String caseInstanceId) Retrieves theHistoricEntityLink
s associated with the given case instance.Retrieves theHistoricEntityLink
s associated with the given task.getHistoricEntityLinkChildrenWithSameRootAsCaseInstance
(String caseInstanceId) Retrieves all theHistoricEntityLink
s associated with same root as the given case instance.getHistoricEntityLinkParentsForCaseInstance
(String caseInstanceId) Retrieves theHistoricEntityLink
s where the given case instance is referenced.Retrieves theHistoricEntityLink
s where the given task is referenced.getHistoricIdentityLinksForCaseInstance
(String caseInstanceId) Retrieves theHistoricIdentityLink
s associated with the given case instance.getHistoricIdentityLinksForPlanItemInstance
(String planItemInstanceId) Retrieves theHistoricIdentityLink
s associated with the given plan item instance.Retrieves theHistoricIdentityLink
s associated with the given task.getStageOverview
(String caseInstanceId) Gives back a stage overview of the historic case instance which includes the stage information of the case model.
-
Method Details
-
createHistoricCaseInstanceQuery
HistoricCaseInstanceQuery createHistoricCaseInstanceQuery() -
createHistoricMilestoneInstanceQuery
HistoricMilestoneInstanceQuery createHistoricMilestoneInstanceQuery() -
createHistoricVariableInstanceQuery
HistoricVariableInstanceQuery createHistoricVariableInstanceQuery() -
createHistoricTaskInstanceQuery
HistoricTaskInstanceQuery createHistoricTaskInstanceQuery() -
createHistoricPlanItemInstanceQuery
HistoricPlanItemInstanceQuery createHistoricPlanItemInstanceQuery() -
getStageOverview
Gives back a stage overview of the historic case instance which includes the stage information of the case model.- Parameters:
caseInstanceId
- id of the case instance, cannot be null.- Returns:
- list of stage info objects
- Throws:
FlowableObjectNotFoundException
- when the case instance doesn't exist.
-
deleteHistoricCaseInstance
-
bulkDeleteHistoricCaseInstances
-
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. -
createCaseReactivationBuilder
Creates a new case reactivation builder used to reactivate an archived / finished case with various options.- Parameters:
caseInstanceId
- the id of the historical case to be reactivated- Returns:
- the case reactivation builder
-
getHistoricIdentityLinksForTask
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. -
getHistoricIdentityLinksForCaseInstance
Retrieves theHistoricIdentityLink
s associated with the given case instance. Such anIdentityLink
informs how a certain identity (eg. group or user) is associated with a certain case instance, even if the instance is completed as opposed toIdentityLink
s which only exist for active instances. -
getHistoricIdentityLinksForPlanItemInstance
Retrieves theHistoricIdentityLink
s associated with the given plan item instance. Such anIdentityLink
informs how a certain identity (eg. group or user) is associated with a certain case instance, even if the instance is completed as opposed toIdentityLink
s which only exist for active instances. -
getHistoricEntityLinkChildrenForCaseInstance
Retrieves theHistoricEntityLink
s associated with the given case instance. -
getHistoricEntityLinkChildrenWithSameRootAsCaseInstance
List<HistoricEntityLink> getHistoricEntityLinkChildrenWithSameRootAsCaseInstance(String caseInstanceId) Retrieves all theHistoricEntityLink
s associated with same root as the given case instance. -
getHistoricEntityLinkParentsForCaseInstance
Retrieves theHistoricEntityLink
s where the given case instance is referenced. -
getHistoricEntityLinkChildrenForTask
Retrieves theHistoricEntityLink
s associated with the given task. -
getHistoricEntityLinkParentsForTask
Retrieves theHistoricEntityLink
s where the given task is referenced. -
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 newHistoricTaskLogEntryQuery
that can be used to dynamically query task log entries. -
createNativeHistoricTaskLogEntryQuery
NativeHistoricTaskLogEntryQuery createNativeHistoricTaskLogEntryQuery()Returns a newNativeHistoricTaskLogEntryQuery
forHistoricTaskLogEntry
s.
-