Package org.flowable.cmmn.api
Interface CmmnHistoryService
- All Known Implementing Classes:
CmmnHistoryServiceImpl
public interface CmmnHistoryService
- Author:
- Joram Barrez
-
Method Summary
Modifier 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
-
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 createdand 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 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. -
getHistoricIdentityLinksForCaseInstance
Retrieves 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. -
getHistoricIdentityLinksForPlanItemInstance
Retrieves 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. -
getHistoricEntityLinkChildrenForCaseInstance
Retrieves theHistoricEntityLinks associated with the given case instance. -
getHistoricEntityLinkChildrenWithSameRootAsCaseInstance
List<HistoricEntityLink> getHistoricEntityLinkChildrenWithSameRootAsCaseInstance(String caseInstanceId) Retrieves all theHistoricEntityLinks associated with same root as the given case instance. -
getHistoricEntityLinkParentsForCaseInstance
Retrieves theHistoricEntityLinks where the given case instance is referenced. -
getHistoricEntityLinkChildrenForTask
Retrieves theHistoricEntityLinks associated with the given task. -
getHistoricEntityLinkParentsForTask
Retrieves theHistoricEntityLinks 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 newHistoricTaskLogEntryQuerythat can be used to dynamically query task log entries. -
createNativeHistoricTaskLogEntryQuery
NativeHistoricTaskLogEntryQuery createNativeHistoricTaskLogEntryQuery()Returns a newNativeHistoricTaskLogEntryQueryforHistoricTaskLogEntrys.
-