Class AbstractServiceInvoker
java.lang.Object
com.flowable.serviceregistry.engine.impl.invoker.AbstractServiceInvoker
- All Implemented Interfaces:
ServiceInvoker
- Direct Known Subclasses:
ExpressionInvoker
,ScriptInvoker
An abstract service invoker supporting general methods around parameter handling for service invokers.
- Author:
- Micha Kiener
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.ObjectMapper
protected ServiceRegistryEngineConfiguration
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractServiceInvoker
(ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 ServiceInvocationVariablesContainer
createAndInitializeServiceInvocationVariablesContainer
(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext context) Creates and initializes a new service invocation variables container according the input parameter definition and initializes empty parameters as well to become accessible in various invocation contexts like expressions or scripts.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.serviceregistry.engine.ServiceInvoker
invoke, invokeList
-
Field Details
-
serviceRegistryEngineConfiguration
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
AbstractServiceInvoker
protected AbstractServiceInvoker(ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
createAndInitializeServiceInvocationVariablesContainer
protected ServiceInvocationVariablesContainer createAndInitializeServiceInvocationVariablesContainer(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext context) Creates and initializes a new service invocation variables container according the input parameter definition and initializes empty parameters as well to become accessible in various invocation contexts like expressions or scripts.- Parameters:
serviceDefinition
- the service definition model the invocation is based onserviceOperation
- the service operation the invocation is based oncontext
- the service invocation context to create a new variable container for- Returns:
- the newly created and initialized service invocation variable container
-
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
-