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
commandExecutor
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
Constructor Summary
Constructors -
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.Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
CmmnHistoryServiceImpl
-
-
Method Details
-
createHistoricCaseInstanceQuery
- Specified by:
createHistoricCaseInstanceQuery
in interfaceCmmnHistoryService
-
createHistoricMilestoneInstanceQuery
- Specified by:
createHistoricMilestoneInstanceQuery
in interfaceCmmnHistoryService
-
createHistoricVariableInstanceQuery
- Specified by:
createHistoricVariableInstanceQuery
in interfaceCmmnHistoryService
-
createHistoricPlanItemInstanceQuery
- Specified by:
createHistoricPlanItemInstanceQuery
in interfaceCmmnHistoryService
-
getStageOverview
Description copied from interface:CmmnHistoryService
Gives back a stage overview of the historic case instance which includes the stage information of the case model.- Specified by:
getStageOverview
in interfaceCmmnHistoryService
- Parameters:
caseInstanceId
- id of the case instance, cannot be null.- Returns:
- list of stage info objects
-
deleteHistoricCaseInstance
- Specified by:
deleteHistoricCaseInstance
in interfaceCmmnHistoryService
-
bulkDeleteHistoricCaseInstances
- Specified by:
bulkDeleteHistoricCaseInstances
in interfaceCmmnHistoryService
-
createHistoricTaskInstanceQuery
- Specified by:
createHistoricTaskInstanceQuery
in interfaceCmmnHistoryService
-
deleteHistoricTaskInstance
Description copied from interface:CmmnHistoryService
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.- Specified by:
deleteHistoricTaskInstance
in interfaceCmmnHistoryService
-
createCaseReactivationBuilder
Description copied from interface:CmmnHistoryService
Creates a new case reactivation builder used to reactivate an archived / finished case with various options.- Specified by:
createCaseReactivationBuilder
in interfaceCmmnHistoryService
- Parameters:
caseInstanceId
- the id of the historical case to be reactivated- Returns:
- the case reactivation builder
-
getHistoricIdentityLinksForCaseInstance
Description copied from interface:CmmnHistoryService
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.- Specified by:
getHistoricIdentityLinksForCaseInstance
in interfaceCmmnHistoryService
-
getHistoricIdentityLinksForPlanItemInstance
public List<HistoricIdentityLink> getHistoricIdentityLinksForPlanItemInstance(String planItemInstanceId) Description copied from interface:CmmnHistoryService
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.- Specified by:
getHistoricIdentityLinksForPlanItemInstance
in interfaceCmmnHistoryService
-
getHistoricIdentityLinksForTask
Description copied from interface:CmmnHistoryService
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.- Specified by:
getHistoricIdentityLinksForTask
in interfaceCmmnHistoryService
-
getHistoricEntityLinkChildrenForCaseInstance
Description copied from interface:CmmnHistoryService
Retrieves theHistoricEntityLink
s associated with the given case instance.- Specified by:
getHistoricEntityLinkChildrenForCaseInstance
in interfaceCmmnHistoryService
-
getHistoricEntityLinkChildrenWithSameRootAsCaseInstance
public List<HistoricEntityLink> getHistoricEntityLinkChildrenWithSameRootAsCaseInstance(String caseInstanceId) Description copied from interface:CmmnHistoryService
Retrieves all theHistoricEntityLink
s associated with same root as the given case instance.- Specified by:
getHistoricEntityLinkChildrenWithSameRootAsCaseInstance
in interfaceCmmnHistoryService
-
getHistoricEntityLinkParentsForCaseInstance
Description copied from interface:CmmnHistoryService
Retrieves theHistoricEntityLink
s where the given case instance is referenced.- Specified by:
getHistoricEntityLinkParentsForCaseInstance
in interfaceCmmnHistoryService
-
getHistoricEntityLinkChildrenForTask
Description copied from interface:CmmnHistoryService
Retrieves theHistoricEntityLink
s associated with the given task.- Specified by:
getHistoricEntityLinkChildrenForTask
in interfaceCmmnHistoryService
-
getHistoricEntityLinkParentsForTask
Description copied from interface:CmmnHistoryService
Retrieves theHistoricEntityLink
s where the given task is referenced.- Specified by:
getHistoricEntityLinkParentsForTask
in interfaceCmmnHistoryService
-
deleteHistoricTaskLogEntry
public void deleteHistoricTaskLogEntry(long logNumber) Description copied from interface:CmmnHistoryService
Deletes user task log entry by its log number- Specified by:
deleteHistoricTaskLogEntry
in interfaceCmmnHistoryService
- Parameters:
logNumber
- user task log entry identifier
-
createHistoricTaskLogEntryBuilder
Description copied from interface:CmmnHistoryService
Create new task log entry builder to the log task event- Specified by:
createHistoricTaskLogEntryBuilder
in interfaceCmmnHistoryService
- Parameters:
task
- to which is log related to
-
createHistoricTaskLogEntryBuilder
Description copied from interface:CmmnHistoryService
Create new task log entry builder to the log task event without predefined values from the task- Specified by:
createHistoricTaskLogEntryBuilder
in interfaceCmmnHistoryService
-
createHistoricTaskLogEntryQuery
Description copied from interface:CmmnHistoryService
Returns a newHistoricTaskLogEntryQuery
that can be used to dynamically query task log entries.- Specified by:
createHistoricTaskLogEntryQuery
in interfaceCmmnHistoryService
-
createNativeHistoricTaskLogEntryQuery
Description copied from interface:CmmnHistoryService
Returns a newNativeHistoricTaskLogEntryQuery
forHistoricTaskLogEntry
s.- Specified by:
createNativeHistoricTaskLogEntryQuery
in interfaceCmmnHistoryService
-