Class DefaultCmmnHistoryConfigurationSettings
java.lang.Object
org.flowable.cmmn.engine.impl.history.DefaultCmmnHistoryConfigurationSettings
- All Implemented Interfaces:
CmmnHistoryConfigurationSettings
public class DefaultCmmnHistoryConfigurationSettings
extends Object
implements CmmnHistoryConfigurationSettings
- Author:
- Joram Barrez
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultCmmnHistoryConfigurationSettings
(CmmnEngineConfiguration cmmnEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected HistoryLevel
getCaseDefinitionHistoryLevel
(String caseDefinitionId) protected String
getCaseDefinitionId
(EntityLinkEntity entityLink) protected String
getCaseDefinitionId
(IdentityLinkEntity identityLink) protected boolean
hasTaskHistoryLevel
(HistoryLevel historyLevel) protected boolean
includePlanItemDefinitionInHistory
(String caseDefinitionId, String activityId) protected boolean
boolean
Returns whether history is enabled on the case engine configuration.boolean
isHistoryEnabled
(String caseDefinitionId) Returns whether any history should be stored for the given case definition (i.e.protected boolean
isHistoryEnabledForActivity
(String caseDefinitionId, String activityId) boolean
isHistoryEnabledForCaseInstance
(CaseInstanceEntity caseInstanceEntity) Returns whether history is enabled for the provided case instance.boolean
isHistoryEnabledForEntityLink
(EntityLinkEntity entityLink) Returns whether history is enabled for the provided entity link.boolean
isHistoryEnabledForIdentityLink
(IdentityLinkEntity identityLinkEntity) Returns whether history is enabled for the provided identity link.boolean
isHistoryEnabledForMilestone
(MilestoneInstanceEntity milestoneInstanceEntity) Returns whether history is enabled for the provided activity.boolean
isHistoryEnabledForPlanItemInstance
(PlanItemInstanceEntity planItemInstanceEntity) Returns whether history is enabled for the provided plan item instance.boolean
isHistoryEnabledForUserTask
(TaskInfo taskInfo) Returns whether history is enabled for the provided user task.boolean
isHistoryEnabledForVariableInstance
(VariableInstanceEntity variableInstanceEntity) Returns whether history is enabled for the provided variable instance.boolean
isHistoryEnabledForVariables
(HistoricTaskInstance historicTaskInstance) Returns whether variable history is enabled for the provided historic task instance.boolean
isHistoryLevelAtLeast
(HistoryLevel level, String caseDefinitionId) Returns whether the history level is at least the given level.
-
Field Details
-
cmmnEngineConfiguration
-
-
Constructor Details
-
DefaultCmmnHistoryConfigurationSettings
-
-
Method Details
-
isHistoryEnabled
public boolean isHistoryEnabled()Description copied from interface:CmmnHistoryConfigurationSettings
Returns whether history is enabled on the case engine configuration.- Specified by:
isHistoryEnabled
in interfaceCmmnHistoryConfigurationSettings
-
isEnableCaseDefinitionHistoryLevel
protected boolean isEnableCaseDefinitionHistoryLevel() -
isHistoryEnabled
Description copied from interface:CmmnHistoryConfigurationSettings
Returns whether any history should be stored for the given case definition (i.e. the history level is different fromHistoryLevel.NONE
.- Specified by:
isHistoryEnabled
in interfaceCmmnHistoryConfigurationSettings
-
isHistoryLevelAtLeast
Description copied from interface:CmmnHistoryConfigurationSettings
Returns whether the history level is at least the given level. If case definitions have more specific settings the level will be checked against that before checking the engine configuration.- Specified by:
isHistoryLevelAtLeast
in interfaceCmmnHistoryConfigurationSettings
-
isHistoryEnabledForCaseInstance
Description copied from interface:CmmnHistoryConfigurationSettings
Returns whether history is enabled for the provided case instance.- Specified by:
isHistoryEnabledForCaseInstance
in interfaceCmmnHistoryConfigurationSettings
-
isHistoryEnabledForActivity
-
isHistoryEnabledForMilestone
Description copied from interface:CmmnHistoryConfigurationSettings
Returns whether history is enabled for the provided activity.- Specified by:
isHistoryEnabledForMilestone
in interfaceCmmnHistoryConfigurationSettings
-
isHistoryEnabledForPlanItemInstance
Description copied from interface:CmmnHistoryConfigurationSettings
Returns whether history is enabled for the provided plan item instance.- Specified by:
isHistoryEnabledForPlanItemInstance
in interfaceCmmnHistoryConfigurationSettings
-
isHistoryEnabledForUserTask
Description copied from interface:CmmnHistoryConfigurationSettings
Returns whether history is enabled for the provided user task.- Specified by:
isHistoryEnabledForUserTask
in interfaceCmmnHistoryConfigurationSettings
-
hasTaskHistoryLevel
-
isHistoryEnabledForVariableInstance
Description copied from interface:CmmnHistoryConfigurationSettings
Returns whether history is enabled for the provided variable instance.- Specified by:
isHistoryEnabledForVariableInstance
in interfaceCmmnHistoryConfigurationSettings
-
isHistoryEnabledForIdentityLink
Description copied from interface:CmmnHistoryConfigurationSettings
Returns whether history is enabled for the provided identity link.- Specified by:
isHistoryEnabledForIdentityLink
in interfaceCmmnHistoryConfigurationSettings
-
getCaseDefinitionId
-
isHistoryEnabledForEntityLink
Description copied from interface:CmmnHistoryConfigurationSettings
Returns whether history is enabled for the provided entity link.- Specified by:
isHistoryEnabledForEntityLink
in interfaceCmmnHistoryConfigurationSettings
-
isHistoryEnabledForVariables
Description copied from interface:CmmnHistoryConfigurationSettings
Returns whether variable history is enabled for the provided historic task instance.- Specified by:
isHistoryEnabledForVariables
in interfaceCmmnHistoryConfigurationSettings
-
getCaseDefinitionId
-
getCaseDefinitionHistoryLevel
-
includePlanItemDefinitionInHistory
-