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 HistoryLevel
getProcessDefinitionHistoryLevel
(String processDefinitionId) protected String
getProcessDefinitionId
(EntityLinkEntity entityLink) protected String
getProcessDefinitionId
(IdentityLinkEntity identityLink) protected boolean
hasTaskHistoryLevel
(HistoryLevel historyLevel) protected boolean
includeFlowElementInHistory
(String processDefinitionId, String activityId) protected boolean
boolean
Returns whether history is enabled on the process engine configuration.boolean
isHistoryEnabled
(String processDefinitionId) Returns whether any history should be stored for the given process definition (i.e.boolean
isHistoryEnabledForActivity
(String processDefinitionId, String activityId) Returns whether history is enabled for the provided activity.boolean
isHistoryEnabledForActivity
(ActivityInstance activityInstance) Returns whether history is enabled for the provided activity.boolean
isHistoryEnabledForEntityLink
(EntityLinkEntity entityLink) Returns whether history is enabled for the provided entity link.boolean
isHistoryEnabledForIdentityLink
(IdentityLinkEntity identityLink) Returns whether history is enabled for the provided identity link.boolean
isHistoryEnabledForProcessInstance
(ExecutionEntity processInstanceExecution) Returns whether history is enabled for the provided process instance.protected boolean
isHistoryEnabledForUserTask
(String processDefinitionId) boolean
isHistoryEnabledForUserTask
(ExecutionEntity executionEntity, TaskEntity taskEntity) Returns whether history is enabled for the provided user task.boolean
isHistoryEnabledForUserTask
(TaskInfo taskInfo) Returns whether history is enabled for the provided user task.boolean
isHistoryEnabledForVariableInstance
(String processDefinitionId, VariableInstanceEntity variableInstanceEntity) Returns whether history is enabled for the provided variable instance.boolean
isHistoryEnabledForVariableInstance
(VariableInstanceEntity variableInstanceEntity) Returns whether history is enabled for the provided variable instance.boolean
isHistoryEnabledForVariables
(String processDefinitionId) Returns whether history is enabled for variables for the provided historic process instance.boolean
isHistoryEnabledForVariables
(HistoricTaskInstance historicTaskInstance) Returns whether variable history is enabled for the provided historic task instance.boolean
isHistoryLevelAtLeast
(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:HistoryConfigurationSettings
Returns whether history is enabled on the process engine configuration.- Specified by:
isHistoryEnabled
in interfaceHistoryConfigurationSettings
-
getProcessDefinitionHistoryLevel
-
isHistoryEnabled
Description copied from interface:HistoryConfigurationSettings
Returns whether any history should be stored for the given process definition (i.e. the history level is different fromHistoryLevel.NONE
.- Specified by:
isHistoryEnabled
in interfaceHistoryConfigurationSettings
-
isHistoryLevelAtLeast
Description copied from interface:HistoryConfigurationSettings
Returns 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:
isHistoryLevelAtLeast
in interfaceHistoryConfigurationSettings
-
isHistoryEnabledForProcessInstance
Description copied from interface:HistoryConfigurationSettings
Returns whether history is enabled for the provided process instance.- Specified by:
isHistoryEnabledForProcessInstance
in interfaceHistoryConfigurationSettings
-
isHistoryEnabledForActivity
Description copied from interface:HistoryConfigurationSettings
Returns whether history is enabled for the provided activity.- Specified by:
isHistoryEnabledForActivity
in interfaceHistoryConfigurationSettings
-
isHistoryEnabledForActivity
Description copied from interface:HistoryConfigurationSettings
Returns 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:
isHistoryEnabledForActivity
in interfaceHistoryConfigurationSettings
-
includeFlowElementInHistory
-
isHistoryEnabledForUserTask
Description copied from interface:HistoryConfigurationSettings
Returns whether history is enabled for the provided user task.- Specified by:
isHistoryEnabledForUserTask
in interfaceHistoryConfigurationSettings
-
isHistoryEnabledForUserTask
Description copied from interface:HistoryConfigurationSettings
Returns 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:
isHistoryEnabledForUserTask
in interfaceHistoryConfigurationSettings
-
isHistoryEnabledForUserTask
-
hasTaskHistoryLevel
-
isHistoryEnabledForVariableInstance
Description copied from interface:HistoryConfigurationSettings
Returns whether history is enabled for the provided variable instance.- Specified by:
isHistoryEnabledForVariableInstance
in interfaceHistoryConfigurationSettings
-
isHistoryEnabledForVariableInstance
public boolean isHistoryEnabledForVariableInstance(String processDefinitionId, VariableInstanceEntity variableInstanceEntity) Description copied from interface:HistoryConfigurationSettings
Returns 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:
isHistoryEnabledForVariableInstance
in interfaceHistoryConfigurationSettings
-
isHistoryEnabledForVariables
Description copied from interface:HistoryConfigurationSettings
Returns whether history is enabled for variables for the provided historic process instance.- Specified by:
isHistoryEnabledForVariables
in interfaceHistoryConfigurationSettings
-
isHistoryEnabledForIdentityLink
Description copied from interface:HistoryConfigurationSettings
Returns whether history is enabled for the provided identity link.- Specified by:
isHistoryEnabledForIdentityLink
in interfaceHistoryConfigurationSettings
-
getProcessDefinitionId
-
isHistoryEnabledForEntityLink
Description copied from interface:HistoryConfigurationSettings
Returns whether history is enabled for the provided entity link.- Specified by:
isHistoryEnabledForEntityLink
in interfaceHistoryConfigurationSettings
-
isHistoryEnabledForVariables
Description copied from interface:HistoryConfigurationSettings
Returns whether variable history is enabled for the provided historic task instance.- Specified by:
isHistoryEnabledForVariables
in interfaceHistoryConfigurationSettings
-
getProcessDefinitionId
-