Package io.camunda.migrator.interceptor
Class VariableTypeDetector
java.lang.Object
io.camunda.migrator.interceptor.VariableTypeDetector
Utility class for determining variable type compatibility with interceptors using Camunda's native type system.
This class works with Camunda's existing variable value interfaces instead of custom enums, providing better integration with the Camunda API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleansupportsTypedValue(VariableInterceptor interceptor, org.camunda.bpm.engine.variable.value.TypedValue typedValue) Checks if an interceptor supports a specific typed value.static booleansupportsVariable(VariableInterceptor interceptor, VariableInvocation invocation) Checks if an interceptor supports a specific variable based on its typed value.static booleansupportsVariable(VariableInterceptor interceptor, org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity variable) Checks if an interceptor supports a specific variable based on its typed value.
-
Method Details
-
supportsVariable
public static boolean supportsVariable(VariableInterceptor interceptor, VariableInvocation invocation) Checks if an interceptor supports a specific variable based on its typed value.- Parameters:
interceptor- the interceptor to checkinvocation- the variable invocation- Returns:
- true if the interceptor supports the variable type
-
supportsVariable
public static boolean supportsVariable(VariableInterceptor interceptor, org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity variable) Checks if an interceptor supports a specific variable based on its typed value.- Parameters:
interceptor- the interceptor to checkvariable- the C7 variable instance- Returns:
- true if the interceptor supports the variable type
-
supportsTypedValue
public static boolean supportsTypedValue(VariableInterceptor interceptor, org.camunda.bpm.engine.variable.value.TypedValue typedValue) Checks if an interceptor supports a specific typed value.- Parameters:
interceptor- the interceptor to checktypedValue- the typed value to check- Returns:
- true if the interceptor supports the typed value
-