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 Modifier and Type Field Description protected CmmnEngineConfigurationcmmnEngineConfiguration
-
Constructor Summary
Constructors Constructor Description DefaultCmmnHistoryConfigurationSettings(CmmnEngineConfiguration cmmnEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HistoryLevelgetCaseDefinitionHistoryLevel(String caseDefinitionId)protected StringgetCaseDefinitionId(EntityLinkEntity entityLink)protected StringgetCaseDefinitionId(org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity identityLink)protected booleanhasTaskHistoryLevel(HistoryLevel historyLevel)protected booleanincludePlanItemDefinitionInHistory(String caseDefinitionId, String activityId)protected booleanisEnableCaseDefinitionHistoryLevel()booleanisHistoryEnabled()Returns whether history is enabled on the case engine configuration.booleanisHistoryEnabled(String caseDefinitionId)Returns whether any history should be stored for the given case definition (i.e.protected booleanisHistoryEnabledForActivity(String caseDefinitionId, String activityId)booleanisHistoryEnabledForCaseInstance(CaseInstanceEntity caseInstanceEntity)Returns whether history is enabled for the provided case instance.booleanisHistoryEnabledForEntityLink(EntityLinkEntity entityLink)Returns whether history is enabled for the provided entity link.booleanisHistoryEnabledForIdentityLink(org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity identityLinkEntity)Returns whether history is enabled for the provided identity link.booleanisHistoryEnabledForMilestone(MilestoneInstanceEntity milestoneInstanceEntity)Returns whether history is enabled for the provided activity.booleanisHistoryEnabledForPlanItemInstance(PlanItemInstanceEntity planItemInstanceEntity)Returns whether history is enabled for the provided plan item instance.booleanisHistoryEnabledForUserTask(org.flowable.task.api.TaskInfo taskInfo)Returns whether history is enabled for the provided user task.booleanisHistoryEnabledForVariableInstance(VariableInstanceEntity variableInstanceEntity)Returns whether history is enabled for the provided variable instance.booleanisHistoryLevelAtLeast(HistoryLevel level, String caseDefinitionId)Returns whether the history level is at least the given level.
-
-
-
Field Detail
-
cmmnEngineConfiguration
protected CmmnEngineConfiguration cmmnEngineConfiguration
-
-
Constructor Detail
-
DefaultCmmnHistoryConfigurationSettings
public DefaultCmmnHistoryConfigurationSettings(CmmnEngineConfiguration cmmnEngineConfiguration)
-
-
Method Detail
-
isHistoryEnabled
public boolean isHistoryEnabled()
Description copied from interface:CmmnHistoryConfigurationSettingsReturns whether history is enabled on the case engine configuration.- Specified by:
isHistoryEnabledin interfaceCmmnHistoryConfigurationSettings
-
isEnableCaseDefinitionHistoryLevel
protected boolean isEnableCaseDefinitionHistoryLevel()
-
isHistoryEnabled
public boolean isHistoryEnabled(String caseDefinitionId)
Description copied from interface:CmmnHistoryConfigurationSettingsReturns whether any history should be stored for the given case definition (i.e. the history level is different fromHistoryLevel.NONE.- Specified by:
isHistoryEnabledin interfaceCmmnHistoryConfigurationSettings
-
isHistoryLevelAtLeast
public boolean isHistoryLevelAtLeast(HistoryLevel level, String caseDefinitionId)
Description copied from interface:CmmnHistoryConfigurationSettingsReturns 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:
isHistoryLevelAtLeastin interfaceCmmnHistoryConfigurationSettings
-
isHistoryEnabledForCaseInstance
public boolean isHistoryEnabledForCaseInstance(CaseInstanceEntity caseInstanceEntity)
Description copied from interface:CmmnHistoryConfigurationSettingsReturns whether history is enabled for the provided case instance.- Specified by:
isHistoryEnabledForCaseInstancein interfaceCmmnHistoryConfigurationSettings
-
isHistoryEnabledForActivity
protected boolean isHistoryEnabledForActivity(String caseDefinitionId, String activityId)
-
isHistoryEnabledForMilestone
public boolean isHistoryEnabledForMilestone(MilestoneInstanceEntity milestoneInstanceEntity)
Description copied from interface:CmmnHistoryConfigurationSettingsReturns whether history is enabled for the provided activity.- Specified by:
isHistoryEnabledForMilestonein interfaceCmmnHistoryConfigurationSettings
-
isHistoryEnabledForPlanItemInstance
public boolean isHistoryEnabledForPlanItemInstance(PlanItemInstanceEntity planItemInstanceEntity)
Description copied from interface:CmmnHistoryConfigurationSettingsReturns whether history is enabled for the provided plan item instance.- Specified by:
isHistoryEnabledForPlanItemInstancein interfaceCmmnHistoryConfigurationSettings
-
isHistoryEnabledForUserTask
public boolean isHistoryEnabledForUserTask(org.flowable.task.api.TaskInfo taskInfo)
Description copied from interface:CmmnHistoryConfigurationSettingsReturns whether history is enabled for the provided user task.- Specified by:
isHistoryEnabledForUserTaskin interfaceCmmnHistoryConfigurationSettings
-
hasTaskHistoryLevel
protected boolean hasTaskHistoryLevel(HistoryLevel historyLevel)
-
isHistoryEnabledForVariableInstance
public boolean isHistoryEnabledForVariableInstance(VariableInstanceEntity variableInstanceEntity)
Description copied from interface:CmmnHistoryConfigurationSettingsReturns whether history is enabled for the provided variable instance.- Specified by:
isHistoryEnabledForVariableInstancein interfaceCmmnHistoryConfigurationSettings
-
isHistoryEnabledForIdentityLink
public boolean isHistoryEnabledForIdentityLink(org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity identityLinkEntity)
Description copied from interface:CmmnHistoryConfigurationSettingsReturns whether history is enabled for the provided identity link.- Specified by:
isHistoryEnabledForIdentityLinkin interfaceCmmnHistoryConfigurationSettings
-
getCaseDefinitionId
protected String getCaseDefinitionId(org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity identityLink)
-
isHistoryEnabledForEntityLink
public boolean isHistoryEnabledForEntityLink(EntityLinkEntity entityLink)
Description copied from interface:CmmnHistoryConfigurationSettingsReturns whether history is enabled for the provided entity link.- Specified by:
isHistoryEnabledForEntityLinkin interfaceCmmnHistoryConfigurationSettings
-
getCaseDefinitionId
protected String getCaseDefinitionId(EntityLinkEntity entityLink)
-
getCaseDefinitionHistoryLevel
protected HistoryLevel getCaseDefinitionHistoryLevel(String caseDefinitionId)
-
-