Class AbstractServiceInvoker

    • Field Detail

      • objectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • AbstractServiceInvoker

        protected AbstractServiceInvoker​(ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration,
                                         com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • 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 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
      • 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 on
        inputParameter - the input parameter to be processed
        serviceInvocationVariablesContainer - the container where the variable value will be added to