Interface VariableValueConversionHandler
- All Known Implementing Classes:
DefaultVariableValueConversionHandler
public interface VariableValueConversionHandler
Handler for converting variable values between types.
Used by IO parameter processing (e.g. targetType on in parameters, sourceType on out parameters)
in both the BPMN and CMMN engines.
Can be plugged in on the process engine and CMMN engine configuration to customize the type conversion behavior.
- Author:
- Tijs Rademakers
-
Method Summary
Modifier and TypeMethodDescriptionconvertValue(Object value, String type, VariableJsonMapper variableJsonMapper) Convert a value to the specified type.
-
Method Details
-
convertValue
Convert a value to the specified type.- Parameters:
value- the value to convert (must not be null)type- the target type name (e.g. "string", "integer", "date", "json")variableJsonMapper- the mapper to use for JSON/array conversions- Returns:
- the converted value
-