Class AbstractServiceInvoker

java.lang.Object
com.flowable.serviceregistry.engine.impl.invoker.AbstractServiceInvoker
All Implemented Interfaces:
ServiceInvoker
Direct Known Subclasses:
ExpressionInvoker, ScriptInvoker

public abstract class AbstractServiceInvoker extends Object implements ServiceInvoker
An abstract service invoker supporting general methods around parameter handling for service invokers.
Author:
Micha Kiener
  • Field Details

    • serviceRegistryEngineConfiguration

      protected ServiceRegistryEngineConfiguration 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 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