Package org.flowable.engine.impl.history
Class DefaultHistoryConfigurationSettings
- java.lang.Object
-
- org.flowable.engine.impl.history.DefaultHistoryConfigurationSettings
-
- All Implemented Interfaces:
HistoryConfigurationSettings
public class DefaultHistoryConfigurationSettings extends Object implements HistoryConfigurationSettings
- Author:
- Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected ProcessEngineConfigurationImplprocessEngineConfiguration
-
Constructor Summary
Constructors Constructor Description DefaultHistoryConfigurationSettings(ProcessEngineConfigurationImpl processEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HistoryLevelgetProcessDefinitionHistoryLevel(String processDefinitionId)protected StringgetProcessDefinitionId(EntityLinkEntity entityLink)protected StringgetProcessDefinitionId(IdentityLinkEntity identityLink)protected booleanhasTaskHistoryLevel(HistoryLevel historyLevel)protected booleanincludeFlowElementInHistory(String processDefinitionId, String activityId)protected booleanisEnableProcessDefinitionHistoryLevel()booleanisHistoryEnabled()Returns whether history is enabled on the process engine configuration.booleanisHistoryEnabled(String processDefinitionId)Returns whether any history should be stored for the given process definition (i.e.booleanisHistoryEnabledForActivity(String processDefinitionId, String activityId)Returns whether history is enabled for the provided activity.booleanisHistoryEnabledForActivity(ActivityInstance activityInstance)Returns whether history is enabled for the provided activity.booleanisHistoryEnabledForEntityLink(EntityLinkEntity entityLink)Returns whether history is enabled for the provided entity link.booleanisHistoryEnabledForIdentityLink(IdentityLinkEntity identityLink)Returns whether history is enabled for the provided identity link.booleanisHistoryEnabledForProcessInstance(ExecutionEntity processInstanceExecution)Returns whether history is enabled for the provided process instance.protected booleanisHistoryEnabledForUserTask(String processDefinitionId)booleanisHistoryEnabledForUserTask(ExecutionEntity executionEntity, TaskEntity taskEntity)Returns whether history is enabled for the provided user task.booleanisHistoryEnabledForUserTask(org.flowable.task.api.TaskInfo taskInfo)Returns whether history is enabled for the provided user task.booleanisHistoryEnabledForVariableInstance(String processDefinitionId, VariableInstanceEntity variableInstanceEntity)Returns whether history is enabled for the provided variable instance.booleanisHistoryEnabledForVariableInstance(VariableInstanceEntity variableInstanceEntity)Returns whether history is enabled for the provided variable instance.booleanisHistoryLevelAtLeast(HistoryLevel level, String processDefinitionId)Returns whether the history level is at least the given level.
-
-
-
Field Detail
-
processEngineConfiguration
protected ProcessEngineConfigurationImpl processEngineConfiguration
-
-
Constructor Detail
-
DefaultHistoryConfigurationSettings
public DefaultHistoryConfigurationSettings(ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Detail
-
isEnableProcessDefinitionHistoryLevel
protected boolean isEnableProcessDefinitionHistoryLevel()
-
isHistoryEnabled
public boolean isHistoryEnabled()
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled on the process engine configuration.- Specified by:
isHistoryEnabledin interfaceHistoryConfigurationSettings
-
getProcessDefinitionHistoryLevel
protected HistoryLevel getProcessDefinitionHistoryLevel(String processDefinitionId)
-
isHistoryEnabled
public boolean isHistoryEnabled(String processDefinitionId)
Description copied from interface:HistoryConfigurationSettingsReturns whether any history should be stored for the given process definition (i.e. the history level is different fromHistoryLevel.NONE.- Specified by:
isHistoryEnabledin interfaceHistoryConfigurationSettings
-
isHistoryLevelAtLeast
public boolean isHistoryLevelAtLeast(HistoryLevel level, String processDefinitionId)
Description copied from interface:HistoryConfigurationSettingsReturns whether the history level is at least the given level. If process definitions have more specific settings the level will be checked against that before checking the engine configuration.- Specified by:
isHistoryLevelAtLeastin interfaceHistoryConfigurationSettings
-
isHistoryEnabledForProcessInstance
public boolean isHistoryEnabledForProcessInstance(ExecutionEntity processInstanceExecution)
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided process instance.- Specified by:
isHistoryEnabledForProcessInstancein interfaceHistoryConfigurationSettings
-
isHistoryEnabledForActivity
public boolean isHistoryEnabledForActivity(ActivityInstance activityInstance)
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided activity.- Specified by:
isHistoryEnabledForActivityin interfaceHistoryConfigurationSettings
-
isHistoryEnabledForActivity
public boolean isHistoryEnabledForActivity(String processDefinitionId, String activityId)
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided activity. This method has an extra activityInstance parameter, for legacy reasons and should only be used in those exceptional situations.- Specified by:
isHistoryEnabledForActivityin interfaceHistoryConfigurationSettings
-
includeFlowElementInHistory
protected boolean includeFlowElementInHistory(String processDefinitionId, String activityId)
-
isHistoryEnabledForUserTask
public boolean isHistoryEnabledForUserTask(org.flowable.task.api.TaskInfo taskInfo)
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided user task.- Specified by:
isHistoryEnabledForUserTaskin interfaceHistoryConfigurationSettings
-
isHistoryEnabledForUserTask
public boolean isHistoryEnabledForUserTask(ExecutionEntity executionEntity, TaskEntity taskEntity)
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided user task. This method has an extra executionEntity parameter, for legacy reasons and should only be used in those exceptional situations.- Specified by:
isHistoryEnabledForUserTaskin interfaceHistoryConfigurationSettings
-
isHistoryEnabledForUserTask
protected boolean isHistoryEnabledForUserTask(String processDefinitionId)
-
hasTaskHistoryLevel
protected boolean hasTaskHistoryLevel(HistoryLevel historyLevel)
-
isHistoryEnabledForVariableInstance
public boolean isHistoryEnabledForVariableInstance(VariableInstanceEntity variableInstanceEntity)
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided variable instance.- Specified by:
isHistoryEnabledForVariableInstancein interfaceHistoryConfigurationSettings
-
isHistoryEnabledForVariableInstance
public boolean isHistoryEnabledForVariableInstance(String processDefinitionId, VariableInstanceEntity variableInstanceEntity)
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided variable instance. This method has an extra processDefinitionId parameter, for legacy reasons and should only be used in those exceptional situations.- Specified by:
isHistoryEnabledForVariableInstancein interfaceHistoryConfigurationSettings
-
isHistoryEnabledForIdentityLink
public boolean isHistoryEnabledForIdentityLink(IdentityLinkEntity identityLink)
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided identity link.- Specified by:
isHistoryEnabledForIdentityLinkin interfaceHistoryConfigurationSettings
-
getProcessDefinitionId
protected String getProcessDefinitionId(IdentityLinkEntity identityLink)
-
isHistoryEnabledForEntityLink
public boolean isHistoryEnabledForEntityLink(EntityLinkEntity entityLink)
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided entity link.- Specified by:
isHistoryEnabledForEntityLinkin interfaceHistoryConfigurationSettings
-
getProcessDefinitionId
protected String getProcessDefinitionId(EntityLinkEntity entityLink)
-
-