Package org.flowable.cmmn.engine.impl
Class CmmnHistoryServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<CmmnEngineConfiguration>
org.flowable.cmmn.engine.impl.CmmnHistoryServiceImpl
- All Implemented Interfaces:
CmmnHistoryService
public class CmmnHistoryServiceImpl
extends CommonEngineServiceImpl<CmmnEngineConfiguration>
implements CmmnHistoryService
- Author:
- Joram Barrez
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutorFields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration -
Constructor Summary
Constructors -
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.Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
CmmnHistoryServiceImpl
-
-
Method Details
-
createHistoricCaseInstanceQuery
- Specified by:
createHistoricCaseInstanceQueryin interfaceCmmnHistoryService
-
createHistoricMilestoneInstanceQuery
- Specified by:
createHistoricMilestoneInstanceQueryin interfaceCmmnHistoryService
-
createHistoricVariableInstanceQuery
- Specified by:
createHistoricVariableInstanceQueryin interfaceCmmnHistoryService
-
createHistoricPlanItemInstanceQuery
- Specified by:
createHistoricPlanItemInstanceQueryin interfaceCmmnHistoryService
-
getStageOverview
Description copied from interface:CmmnHistoryServiceGives back a stage overview of the historic case instance which includes the stage information of the case model.- Specified by:
getStageOverviewin interfaceCmmnHistoryService- Parameters:
caseInstanceId- id of the case instance, cannot be null.- Returns:
- list of stage info objects
-
deleteHistoricCaseInstance
- Specified by:
deleteHistoricCaseInstancein interfaceCmmnHistoryService
-
bulkDeleteHistoricCaseInstances
- Specified by:
bulkDeleteHistoricCaseInstancesin interfaceCmmnHistoryService
-
createHistoricTaskInstanceQuery
- Specified by:
createHistoricTaskInstanceQueryin interfaceCmmnHistoryService
-
deleteHistoricTaskInstance
Description copied from interface:CmmnHistoryServiceDeletes 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.- Specified by:
deleteHistoricTaskInstancein interfaceCmmnHistoryService
-
createCaseReactivationBuilder
Description copied from interface:CmmnHistoryServiceCreates a new case reactivation builder used to reactivate an archived / finished case with various options.- Specified by:
createCaseReactivationBuilderin interfaceCmmnHistoryService- Parameters:
caseInstanceId- the id of the historical case to be reactivated- Returns:
- the case reactivation builder
-
getHistoricIdentityLinksForCaseInstance
Description copied from interface:CmmnHistoryServiceRetrieves 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.- Specified by:
getHistoricIdentityLinksForCaseInstancein interfaceCmmnHistoryService
-
getHistoricIdentityLinksForPlanItemInstance
public List<HistoricIdentityLink> getHistoricIdentityLinksForPlanItemInstance(String planItemInstanceId) Description copied from interface:CmmnHistoryServiceRetrieves 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.- Specified by:
getHistoricIdentityLinksForPlanItemInstancein interfaceCmmnHistoryService
-
getHistoricIdentityLinksForTask
Description copied from interface:CmmnHistoryServiceRetrieves 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.- Specified by:
getHistoricIdentityLinksForTaskin interfaceCmmnHistoryService
-
getHistoricEntityLinkChildrenForCaseInstance
Description copied from interface:CmmnHistoryServiceRetrieves theHistoricEntityLinks associated with the given case instance.- Specified by:
getHistoricEntityLinkChildrenForCaseInstancein interfaceCmmnHistoryService
-
getHistoricEntityLinkChildrenWithSameRootAsCaseInstance
public List<HistoricEntityLink> getHistoricEntityLinkChildrenWithSameRootAsCaseInstance(String caseInstanceId) Description copied from interface:CmmnHistoryServiceRetrieves all theHistoricEntityLinks associated with same root as the given case instance.- Specified by:
getHistoricEntityLinkChildrenWithSameRootAsCaseInstancein interfaceCmmnHistoryService
-
getHistoricEntityLinkParentsForCaseInstance
Description copied from interface:CmmnHistoryServiceRetrieves theHistoricEntityLinks where the given case instance is referenced.- Specified by:
getHistoricEntityLinkParentsForCaseInstancein interfaceCmmnHistoryService
-
getHistoricEntityLinkChildrenForTask
Description copied from interface:CmmnHistoryServiceRetrieves theHistoricEntityLinks associated with the given task.- Specified by:
getHistoricEntityLinkChildrenForTaskin interfaceCmmnHistoryService
-
getHistoricEntityLinkParentsForTask
Description copied from interface:CmmnHistoryServiceRetrieves theHistoricEntityLinks where the given task is referenced.- Specified by:
getHistoricEntityLinkParentsForTaskin interfaceCmmnHistoryService
-
deleteHistoricTaskLogEntry
public void deleteHistoricTaskLogEntry(long logNumber) Description copied from interface:CmmnHistoryServiceDeletes user task log entry by its log number- Specified by:
deleteHistoricTaskLogEntryin interfaceCmmnHistoryService- Parameters:
logNumber- user task log entry identifier
-
createHistoricTaskLogEntryBuilder
Description copied from interface:CmmnHistoryServiceCreate new task log entry builder to the log task event- Specified by:
createHistoricTaskLogEntryBuilderin interfaceCmmnHistoryService- Parameters:
task- to which is log related to
-
createHistoricTaskLogEntryBuilder
Description copied from interface:CmmnHistoryServiceCreate new task log entry builder to the log task event without predefined values from the task- Specified by:
createHistoricTaskLogEntryBuilderin interfaceCmmnHistoryService
-
createHistoricTaskLogEntryQuery
Description copied from interface:CmmnHistoryServiceReturns a newHistoricTaskLogEntryQuerythat can be used to dynamically query task log entries.- Specified by:
createHistoricTaskLogEntryQueryin interfaceCmmnHistoryService
-
createNativeHistoricTaskLogEntryQuery
Description copied from interface:CmmnHistoryServiceReturns a newNativeHistoricTaskLogEntryQueryforHistoricTaskLogEntrys.- Specified by:
createNativeHistoricTaskLogEntryQueryin interfaceCmmnHistoryService
-