Class ServiceInvocationResultProcessor
java.lang.Object
com.flowable.serviceregistry.engine.impl.invoker.result.ServiceInvocationResultProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ValueWrapper
extractValue
(ServiceOutputParameter outputParameter, ServiceInvocationResultResponse response, BaseServiceInvocationResult serviceInvocationResult, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static Object
getDefaultValue
(ServiceOutputParameter outputParameter, String defaultValue, ServiceInvocationContext context, ExpressionManager expressionManager, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static HttpHeaders
getHeaders
(ServiceInvocationResultResponse response) protected static String
protected static Collection<ServiceOutputParameter>
getNestedMappingOutputParameters
(NestedOutputMapping nestedOutputMapping, ServiceRegistryEngineConfiguration engineConfiguration, ServiceInvocationContextImpl context) handleOutputParametersValues
(ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation, ServiceInvocationContextImpl context, ServiceRegistryEngineConfiguration serviceEngineConfiguration, Collection<ServiceOutputParameter> outputParameters, ServiceInvocationResultResponse invocationResponse, BaseServiceInvocationResult serviceInvocationResult) handleOutputParameterValues
(ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation, ServiceInvocationContextImpl context, ServiceRegistryEngineConfiguration serviceEngineConfiguration, ServiceInvocationResultResponse invocationResponse, ServiceInvocationResult serviceInvocationResult) Verifies and handles output values according the output paramter definition of the service (specially missing and null-value output).protected static boolean
hasNestedOutputMapping
(ServiceOutputParameter outputParameter) protected static boolean
isErrorResponse
(ServiceInvocationResultResponse invocationResponse) static ServiceInvocationResult
processResultsAccordingToServiceDefinitionModel
(ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation, ServiceInvocationContextImpl context, ServiceRegistryEngineConfiguration serviceEngineConfiguration, ServiceInvocationResultResponse invocationResponse, ServiceInvocationResult serviceInvocationResult, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static boolean
shouldMapParameter
(boolean isErrorResponse, ServiceOutputParameter outputParameter, ServiceDefinitionModel model, ServiceOperation operation)
-
Constructor Details
-
ServiceInvocationResultProcessor
public ServiceInvocationResultProcessor()
-
-
Method Details
-
processResultsAccordingToServiceDefinitionModel
public static ServiceInvocationResult processResultsAccordingToServiceDefinitionModel(ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation, ServiceInvocationContextImpl context, ServiceRegistryEngineConfiguration serviceEngineConfiguration, ServiceInvocationResultResponse invocationResponse, ServiceInvocationResult serviceInvocationResult, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
handleOutputParameterValues
public static Map<String,Object> handleOutputParameterValues(ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation, ServiceInvocationContextImpl context, ServiceRegistryEngineConfiguration serviceEngineConfiguration, ServiceInvocationResultResponse invocationResponse, ServiceInvocationResult serviceInvocationResult) Verifies and handles output values according the output paramter definition of the service (specially missing and null-value output).- Parameters:
serviceDefinitionModel
- the service modelserviceOperation
- the operation which was invokedcontext
- the context within which the service was invokedinvocationResponse
- , theServiceInvocationResultResponse
for which the output params are handeled
-
handleOutputParametersValues
public static Map<String,Object> handleOutputParametersValues(ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation, ServiceInvocationContextImpl context, ServiceRegistryEngineConfiguration serviceEngineConfiguration, Collection<ServiceOutputParameter> outputParameters, ServiceInvocationResultResponse invocationResponse, BaseServiceInvocationResult serviceInvocationResult) -
isErrorResponse
-
shouldMapParameter
protected static boolean shouldMapParameter(boolean isErrorResponse, ServiceOutputParameter outputParameter, ServiceDefinitionModel model, ServiceOperation operation) -
getDefaultValue
protected static Object getDefaultValue(ServiceOutputParameter outputParameter, String defaultValue, ServiceInvocationContext context, ExpressionManager expressionManager, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
hasNestedOutputMapping
-
getNestedMappingOutputParameters
protected static Collection<ServiceOutputParameter> getNestedMappingOutputParameters(NestedOutputMapping nestedOutputMapping, ServiceRegistryEngineConfiguration engineConfiguration, ServiceInvocationContextImpl context) -
extractValue
protected static ValueWrapper extractValue(ServiceOutputParameter outputParameter, ServiceInvocationResultResponse response, BaseServiceInvocationResult serviceInvocationResult, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getHeaders
-
getHeaderValue
-