Package org.flowable.engine.impl.util
Class CountingEntityUtil
java.lang.Object
org.flowable.engine.impl.util.CountingEntityUtil
- Author:
- Tijs Rademakers
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidhandleDeleteEventSubscriptionEntityCount(EventSubscription eventSubscription) static voidhandleDeleteVariableInstanceEntityCount(VariableInstanceEntity variableInstance, boolean fireDeleteEvent) static voidhandleInsertEventSubscriptionEntityCount(EventSubscription eventSubscription) static voidhandleInsertVariableInstanceEntityCount(VariableInstanceEntity variableInstance) static booleanisExecutionRelatedEntityCountEnabled(CountingExecutionEntity executionEntity) There are two flags here: a global flag and a flag on the execution entity.static booleanisExecutionRelatedEntityCountEnabled(ExecutionEntity executionEntity) static booleanstatic booleanisTaskRelatedEntityCountEnabled(CountingTaskEntity taskEntity) Similar functionality with ExecutionRelatedEntityCount, but on the TaskEntity level.static booleanisTaskRelatedEntityCountEnabled(TaskEntity taskEntity) static booleanCheck if the Task Relationship Count performance improvement is enabled.
- 
Constructor Details- 
CountingEntityUtilpublic CountingEntityUtil()
 
- 
- 
Method Details- 
handleDeleteVariableInstanceEntityCountpublic static void handleDeleteVariableInstanceEntityCount(VariableInstanceEntity variableInstance, boolean fireDeleteEvent) 
- 
handleInsertVariableInstanceEntityCount
- 
handleInsertEventSubscriptionEntityCount
- 
handleDeleteEventSubscriptionEntityCount
- 
isExecutionRelatedEntityCountEnabledGloballypublic static boolean isExecutionRelatedEntityCountEnabledGlobally()
- 
isTaskRelatedEntityCountEnabledGloballypublic static boolean isTaskRelatedEntityCountEnabledGlobally()Check if the Task Relationship Count performance improvement is enabled.
- 
isExecutionRelatedEntityCountEnabled
- 
isTaskRelatedEntityCountEnabled
- 
isExecutionRelatedEntityCountEnabledThere 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.
- 
isTaskRelatedEntityCountEnabledSimilar functionality with ExecutionRelatedEntityCount, but on the TaskEntity level.
 
-