Class ExpressionInvoker
java.lang.Object
com.flowable.serviceregistry.engine.impl.invoker.expression.ExpressionInvoker
- All Implemented Interfaces:
ServiceInvoker
public class ExpressionInvoker extends java.lang.Object implements ServiceInvoker
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KEY
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected ServiceRegistryEngineConfiguration
serviceRegistryEngineConfiguration
-
Constructor Summary
Constructors Constructor Description ExpressionInvoker(ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
Modifier and Type Method Description protected void
completeInputParameter(ServiceDefinitionModel serviceDefinitionModel, ServiceInputParameter inputParameter, ServiceInvocationVariablesContainer serviceInvocationVariablesContainer)
Internal method to process a single input parameter by looking at its definition and checking its value and adding null values for missing input parameter values in the data map.ServiceInvocationResponse
invoke(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext context)
-
Field Details
-
KEY
public static final java.lang.String KEY- See Also:
- Constant Field Values
-
serviceRegistryEngineConfiguration
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
ExpressionInvoker
public ExpressionInvoker(ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
invoke
public ServiceInvocationResponse invoke(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext context)- Specified by:
invoke
in interfaceServiceInvoker
-
completeInputParameter
protected void completeInputParameter(ServiceDefinitionModel serviceDefinitionModel, ServiceInputParameter inputParameter, ServiceInvocationVariablesContainer serviceInvocationVariablesContainer)Internal method to process a single input parameter by looking at its definition and checking its value and adding null values for missing input parameter values in the data map.- Parameters:
serviceDefinitionModel
- the service definition model the invocation is based oninputParameter
- the input parameter to be processedserviceInvocationVariablesContainer
- the container where the variable value will be added to
-