Class VariableInterceptorUtil

java.lang.Object
org.finos.fluxnova.bpm.engine.impl.variable.VariableInterceptorUtil

public class VariableInterceptorUtil extends Object
Utility class for invoking variable interceptors in a centralized way. This provides a single source of truth for interceptor invocation logic.
  • Constructor Details

    • VariableInterceptorUtil

      public VariableInterceptorUtil()
  • Method Details

    • interceptGetVariable

      public static TypedValue interceptGetVariable(VariableInstance variableInstance, TypedValue value)
      Intercepts a variable read operation through all configured interceptors.
      Parameters:
      variableInstance - the variable instance being read
      value - the raw typed value
      Returns:
      the intercepted typed value (may be null if filtered)
    • interceptGetHistoricVariable

      public static TypedValue interceptGetHistoricVariable(HistoricVariableInstance historicVariableInstance, TypedValue value)
      Intercepts a historic variable read operation through all configured interceptors.
      Parameters:
      historicVariableInstance - the historic variable instance being read
      value - the raw typed value
      Returns:
      the intercepted typed value (may be null if filtered)
    • interceptCreateVariable

      public static CoreVariableInstance interceptCreateVariable(CoreVariableInstance variableInstance)
      Intercepts a variable create operation through all configured interceptors.
      Parameters:
      variableInstance - the variable instance being created
      Returns:
      the variable instance to persist
    • interceptUpdateVariable

      public static TypedValue interceptUpdateVariable(CoreVariableInstance variableInstance, TypedValue newValue)
      Intercepts a variable update operation through all configured interceptors.
      Parameters:
      variableInstance - the variable instance being updated
      newValue - the new typed value being set
      Returns:
      the value to persist
    • interceptDeleteVariable

      public static void interceptDeleteVariable(CoreVariableInstance variableInstance)
      Intercepts a variable delete operation through all configured interceptors. Historic variable delete check implemented in AuthorizationCommandChecker
      Parameters:
      variableInstance - the variable instance being deleted