Class VariableTypeDetector

java.lang.Object
io.camunda.migrator.interceptor.VariableTypeDetector

public final class VariableTypeDetector extends Object
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 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 check
      invocation - 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 check
      variable - 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 check
      typedValue - the typed value to check
      Returns:
      true if the interceptor supports the typed value