Class VariableInterceptorUtil
java.lang.Object
org.finos.fluxnova.bpm.engine.impl.variable.VariableInterceptorUtil
Utility class for invoking variable interceptors in a centralized way.
This provides a single source of truth for interceptor invocation logic.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CoreVariableInstanceinterceptCreateVariable(CoreVariableInstance variableInstance) Intercepts a variable create operation through all configured interceptors.static voidinterceptDeleteVariable(CoreVariableInstance variableInstance) Intercepts a variable delete operation through all configured interceptors.static TypedValueinterceptGetHistoricVariable(HistoricVariableInstance historicVariableInstance, TypedValue value) Intercepts a historic variable read operation through all configured interceptors.static TypedValueinterceptGetVariable(VariableInstance variableInstance, TypedValue value) Intercepts a variable read operation through all configured interceptors.static TypedValueinterceptUpdateVariable(CoreVariableInstance variableInstance, TypedValue newValue) Intercepts a variable update operation through all configured interceptors.
-
Constructor Details
-
VariableInterceptorUtil
public VariableInterceptorUtil()
-
-
Method Details
-
interceptGetVariable
Intercepts a variable read operation through all configured interceptors.- Parameters:
variableInstance- the variable instance being readvalue- 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 readvalue- the raw typed value- Returns:
- the intercepted typed value (may be null if filtered)
-
interceptCreateVariable
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 updatednewValue- the new typed value being set- Returns:
- the value to persist
-
interceptDeleteVariable
Intercepts a variable delete operation through all configured interceptors. Historic variable delete check implemented inAuthorizationCommandChecker- Parameters:
variableInstance- the variable instance being deleted
-