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 -
Constructor Summary
ConstructorsConstructorDescriptionDefaultHistoryConfigurationSettings(ProcessEngineConfigurationImpl processEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected HistoryLevelgetProcessDefinitionHistoryLevel(String processDefinitionId) protected StringgetProcessDefinitionId(EntityLinkEntity entityLink) protected StringgetProcessDefinitionId(IdentityLinkEntity identityLink) protected booleanhasTaskHistoryLevel(HistoryLevel historyLevel) protected booleanincludeFlowElementInHistory(String processDefinitionId, String activityId) protected booleanbooleanReturns 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(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.booleanisHistoryEnabledForVariables(String processDefinitionId) Returns whether history is enabled for variables for the provided historic process instance.booleanisHistoryEnabledForVariables(HistoricTaskInstance historicTaskInstance) Returns whether variable history is enabled for the provided historic task instance.booleanisHistoryLevelAtLeast(HistoryLevel level, String processDefinitionId) Returns whether the history level is at least the given level.
-
Field Details
-
processEngineConfiguration
-
-
Constructor Details
-
DefaultHistoryConfigurationSettings
public DefaultHistoryConfigurationSettings(ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Details
-
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
-
isHistoryEnabled
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
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
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided process instance.- Specified by:
isHistoryEnabledForProcessInstancein interfaceHistoryConfigurationSettings
-
isHistoryEnabledForActivity
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided activity.- Specified by:
isHistoryEnabledForActivityin interfaceHistoryConfigurationSettings
-
isHistoryEnabledForActivity
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
-
isHistoryEnabledForUserTask
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided user task.- Specified by:
isHistoryEnabledForUserTaskin interfaceHistoryConfigurationSettings
-
isHistoryEnabledForUserTask
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
-
hasTaskHistoryLevel
-
isHistoryEnabledForVariableInstance
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
-
isHistoryEnabledForVariables
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for variables for the provided historic process instance.- Specified by:
isHistoryEnabledForVariablesin interfaceHistoryConfigurationSettings
-
isHistoryEnabledForIdentityLink
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided identity link.- Specified by:
isHistoryEnabledForIdentityLinkin interfaceHistoryConfigurationSettings
-
getProcessDefinitionId
-
isHistoryEnabledForEntityLink
Description copied from interface:HistoryConfigurationSettingsReturns whether history is enabled for the provided entity link.- Specified by:
isHistoryEnabledForEntityLinkin interfaceHistoryConfigurationSettings
-
isHistoryEnabledForVariables
Description copied from interface:HistoryConfigurationSettingsReturns whether variable history is enabled for the provided historic task instance.- Specified by:
isHistoryEnabledForVariablesin interfaceHistoryConfigurationSettings
-
getProcessDefinitionId
-