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 SummaryFieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.ObjectMapperprotected ServiceRegistryEngineConfiguration
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractServiceInvoker(ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration, com.fasterxml.jackson.databind.ObjectMapper objectMapper) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcompleteInputParameter(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 ServiceInvocationVariablesContainercreateAndInitializeServiceInvocationVariablesContainer(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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.flowable.serviceregistry.engine.ServiceInvokerinvoke, invokeList
- 
Field Details- 
serviceRegistryEngineConfiguration
- 
objectMapperprotected com.fasterxml.jackson.databind.ObjectMapper objectMapper
 
- 
- 
Constructor Details- 
AbstractServiceInvokerprotected AbstractServiceInvoker(ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration, com.fasterxml.jackson.databind.ObjectMapper objectMapper) 
 
- 
- 
Method Details- 
createAndInitializeServiceInvocationVariablesContainerprotected 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 on
- serviceOperation- the service operation the invocation is based on
- context- the service invocation context to create a new variable container for
- Returns:
- the newly created and initialized service invocation variable container
 
- 
completeInputParameterprotected 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 on
- inputParameter- the input parameter to be processed
- serviceInvocationVariablesContainer- the container where the variable value will be added to
 
 
-