Class CountingEntityUtil


  • public class CountingEntityUtil
    extends Object
    Author:
    Tijs Rademakers
    • Constructor Detail

      • CountingEntityUtil

        public CountingEntityUtil()
    • Method Detail

      • handleDeleteVariableInstanceEntityCount

        public static void handleDeleteVariableInstanceEntityCount​(VariableInstanceEntity variableInstance,
                                                                   boolean fireDeleteEvent)
      • handleInsertVariableInstanceEntityCount

        public static void handleInsertVariableInstanceEntityCount​(VariableInstanceEntity variableInstance)
      • handleInsertEventSubscriptionEntityCount

        public static void handleInsertEventSubscriptionEntityCount​(org.flowable.eventsubscription.api.EventSubscription eventSubscription)
      • handleDeleteEventSubscriptionEntityCount

        public static void handleDeleteEventSubscriptionEntityCount​(org.flowable.eventsubscription.api.EventSubscription eventSubscription)
      • isExecutionRelatedEntityCountEnabledGlobally

        public static boolean isExecutionRelatedEntityCountEnabledGlobally()
      • isTaskRelatedEntityCountEnabledGlobally

        public static boolean isTaskRelatedEntityCountEnabledGlobally()
        Check if the Task Relationship Count performance improvement is enabled.
      • isExecutionRelatedEntityCountEnabled

        public static boolean isExecutionRelatedEntityCountEnabled​(ExecutionEntity executionEntity)
      • isTaskRelatedEntityCountEnabled

        public static boolean isTaskRelatedEntityCountEnabled​(TaskEntity taskEntity)
      • isExecutionRelatedEntityCountEnabled

        public static boolean isExecutionRelatedEntityCountEnabled​(CountingExecutionEntity executionEntity)
        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

        public static boolean isTaskRelatedEntityCountEnabled​(CountingTaskEntity taskEntity)
        Similar functionality with ExecutionRelatedEntityCount, but on the TaskEntity level.