Package org.flowable.cmmn.api
Interface CmmnHistoryService
- All Known Implementing Classes:
- CmmnHistoryServiceImpl
public interface CmmnHistoryService
- Author:
- Joram Barrez
- 
Method SummaryModifier and TypeMethodDescriptionvoidbulkDeleteHistoricCaseInstances(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 newHistoricTaskLogEntryQuerythat can be used to dynamically query task log entries.Returns a newNativeHistoricTaskLogEntryQueryforHistoricTaskLogEntrys.voiddeleteHistoricCaseInstance(String caseInstanceId) voiddeleteHistoricTaskInstance(String taskId) Deletes historic task instance.voiddeleteHistoricTaskLogEntry(long logNumber) Deletes user task log entry by its log numbergetHistoricEntityLinkChildrenForCaseInstance(String caseInstanceId) Retrieves theHistoricEntityLinks associated with the given case instance.Retrieves theHistoricEntityLinks associated with the given task.getHistoricEntityLinkChildrenWithSameRootAsCaseInstance(String caseInstanceId) Retrieves all theHistoricEntityLinks associated with same root as the given case instance.getHistoricEntityLinkParentsForCaseInstance(String caseInstanceId) Retrieves theHistoricEntityLinks where the given case instance is referenced.Retrieves theHistoricEntityLinks where the given task is referenced.getHistoricIdentityLinksForCaseInstance(String caseInstanceId) Retrieves theHistoricIdentityLinks associated with the given case instance.getHistoricIdentityLinksForPlanItemInstance(String planItemInstanceId) Retrieves theHistoricIdentityLinks associated with the given plan item instance.Retrieves theHistoricIdentityLinks 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- 
createHistoricCaseInstanceQueryHistoricCaseInstanceQuery createHistoricCaseInstanceQuery()
- 
createHistoricMilestoneInstanceQueryHistoricMilestoneInstanceQuery createHistoricMilestoneInstanceQuery()
- 
createHistoricVariableInstanceQueryHistoricVariableInstanceQuery createHistoricVariableInstanceQuery()
- 
createHistoricTaskInstanceQueryHistoricTaskInstanceQuery createHistoricTaskInstanceQuery()
- 
createHistoricPlanItemInstanceQueryHistoricPlanItemInstanceQuery createHistoricPlanItemInstanceQuery()
- 
getStageOverviewGives 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
- 
deleteHistoricTaskInstanceDeletes 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.
- 
createCaseReactivationBuilderCreates 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
 
- 
getHistoricIdentityLinksForTaskRetrieves 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.
- 
getHistoricIdentityLinksForCaseInstanceRetrieves theHistoricIdentityLinks associated with the given case instance. Such anIdentityLinkinforms how a certain identity (eg. group or user) is associated with a certain case instance, even if the instance is completed as opposed toIdentityLinks which only exist for active instances.
- 
getHistoricIdentityLinksForPlanItemInstanceRetrieves theHistoricIdentityLinks associated with the given plan item instance. Such anIdentityLinkinforms how a certain identity (eg. group or user) is associated with a certain case instance, even if the instance is completed as opposed toIdentityLinks which only exist for active instances.
- 
getHistoricEntityLinkChildrenForCaseInstanceRetrieves theHistoricEntityLinks associated with the given case instance.
- 
getHistoricEntityLinkChildrenWithSameRootAsCaseInstanceList<HistoricEntityLink> getHistoricEntityLinkChildrenWithSameRootAsCaseInstance(String caseInstanceId) Retrieves all theHistoricEntityLinks associated with same root as the given case instance.
- 
getHistoricEntityLinkParentsForCaseInstanceRetrieves theHistoricEntityLinks where the given case instance is referenced.
- 
getHistoricEntityLinkChildrenForTaskRetrieves theHistoricEntityLinks associated with the given task.
- 
getHistoricEntityLinkParentsForTaskRetrieves theHistoricEntityLinks where the given task is referenced.
- 
deleteHistoricTaskLogEntryvoid deleteHistoricTaskLogEntry(long logNumber) Deletes user task log entry by its log number- Parameters:
- logNumber- user task log entry identifier
 
- 
createHistoricTaskLogEntryBuilderCreate new task log entry builder to the log task event- Parameters:
- task- to which is log related to
 
- 
createHistoricTaskLogEntryBuilderHistoricTaskLogEntryBuilder createHistoricTaskLogEntryBuilder()Create new task log entry builder to the log task event without predefined values from the task
- 
createHistoricTaskLogEntryQueryHistoricTaskLogEntryQuery createHistoricTaskLogEntryQuery()Returns a newHistoricTaskLogEntryQuerythat can be used to dynamically query task log entries.
- 
createNativeHistoricTaskLogEntryQueryNativeHistoricTaskLogEntryQuery createNativeHistoricTaskLogEntryQuery()Returns a newNativeHistoricTaskLogEntryQueryforHistoricTaskLogEntrys.
 
-