Package org.flowable.engine.impl.util
Class CountingEntityUtil
java.lang.Object
org.flowable.engine.impl.util.CountingEntityUtil
- Author:
- Tijs Rademakers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
handleDeleteEventSubscriptionEntityCount
(EventSubscription eventSubscription) static void
handleDeleteVariableInstanceEntityCount
(VariableInstanceEntity variableInstance, boolean fireDeleteEvent) static void
handleInsertEventSubscriptionEntityCount
(EventSubscription eventSubscription) static void
handleInsertVariableInstanceEntityCount
(VariableInstanceEntity variableInstance) static boolean
isExecutionRelatedEntityCountEnabled
(CountingExecutionEntity executionEntity) There are two flags here: a global flag and a flag on the execution entity.static boolean
isExecutionRelatedEntityCountEnabled
(ExecutionEntity executionEntity) static boolean
static boolean
isTaskRelatedEntityCountEnabled
(CountingTaskEntity taskEntity) Similar functionality with ExecutionRelatedEntityCount, but on the TaskEntity level.static boolean
isTaskRelatedEntityCountEnabled
(TaskEntity taskEntity) static boolean
Check if the Task Relationship Count performance improvement is enabled.
-
Constructor Details
-
CountingEntityUtil
public CountingEntityUtil()
-
-
Method Details
-
handleDeleteVariableInstanceEntityCount
public static void handleDeleteVariableInstanceEntityCount(VariableInstanceEntity variableInstance, boolean fireDeleteEvent) -
handleInsertVariableInstanceEntityCount
-
handleInsertEventSubscriptionEntityCount
-
handleDeleteEventSubscriptionEntityCount
-
isExecutionRelatedEntityCountEnabledGlobally
public static boolean isExecutionRelatedEntityCountEnabledGlobally() -
isTaskRelatedEntityCountEnabledGlobally
public static boolean isTaskRelatedEntityCountEnabledGlobally()Check if the Task Relationship Count performance improvement is enabled. -
isExecutionRelatedEntityCountEnabled
-
isTaskRelatedEntityCountEnabled
-
isExecutionRelatedEntityCountEnabled
There are two flags here: a global flag and a flag on the execution entity. The global flag can be switched on and off between different reboots, however the flag on the executionEntity refers to the state at that particular moment of the last insert/update. Global flag / ExecutionEntity flag : result T / T : T (all true, regular mode with flags enabled) T / F : F (global is true, but execution was of a time when it was disabled, thus treating it as disabled as the counts can't be guessed) F / T : F (execution was of time when counting was done. But this is overruled by the global flag and thus the queries will o be done) F / F : F (all disabled) From this table it is clear that only when both are true, the result should be true, which is the regular AND rule for booleans. -
isTaskRelatedEntityCountEnabled
Similar functionality with ExecutionRelatedEntityCount, but on the TaskEntity level.
-