Class ExpressionInvoker
- java.lang.Object
-
- com.flowable.serviceregistry.engine.impl.invoker.expression.ExpressionInvoker
-
- All Implemented Interfaces:
ServiceInvoker
public class ExpressionInvoker extends Object implements ServiceInvoker
-
-
Field Summary
Fields Modifier and Type Field Description static 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExpressionServiceInvocationResponse
asInvocationResponse(com.fasterxml.jackson.databind.JsonNode resultNode)
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.protected Object
executeExpressionAndGetResult(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext context)
ServiceInvocationResponse
invoke(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext context)
List<ServiceInvocationResponse>
invokeList(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext serviceInvocationContext)
-
-
-
Field Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
serviceRegistryEngineConfiguration
protected ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Detail
-
ExpressionInvoker
public ExpressionInvoker(ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
invoke
public ServiceInvocationResponse invoke(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext context)
- Specified by:
invoke
in interfaceServiceInvoker
-
invokeList
public List<ServiceInvocationResponse> invokeList(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext serviceInvocationContext)
- Specified by:
invokeList
in interfaceServiceInvoker
-
executeExpressionAndGetResult
protected Object executeExpressionAndGetResult(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext context)
-
asInvocationResponse
protected ExpressionServiceInvocationResponse asInvocationResponse(com.fasterxml.jackson.databind.JsonNode resultNode)
-
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
-
-