Class VariableParameterResolver
java.lang.Object
io.taktx.client.VariableParameterResolver
- All Implemented Interfaces:
TaktParameterResolver
A parameter resolver that extracts a variable from the ExternalTaskTriggerDTO's variables map and
converts it to the specified type using Jackson's ObjectMapper.
-
Constructor Summary
ConstructorsConstructorDescriptionVariableParameterResolver(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Class<?> type, String name) Constructs a VariableParameterResolver. -
Method Summary
-
Constructor Details
-
VariableParameterResolver
public VariableParameterResolver(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Class<?> type, String name) Constructs a VariableParameterResolver.- Parameters:
objectMapper- the ObjectMapper to use for conversiontype- the target type to convert the variable toname- the name of the variable to extract
-
-
Method Details
-
resolve
Resolves the parameter by extracting the variable from the ExternalTaskTriggerDTO and converting it to the specified type.- Specified by:
resolvein interfaceTaktParameterResolver- Parameters:
externalTaskTriggerDTO- the ExternalTaskTriggerDTO containing the variables- Returns:
- the resolved parameter value, or null if the variable is not found
-