java.lang.Object
com.flowable.serviceregistry.engine.impl.invoker.AbstractServiceInvoker
com.flowable.serviceregistry.engine.impl.invoker.script.ScriptInvoker
All Implemented Interfaces:
ServiceInvoker

public class ScriptInvoker extends AbstractServiceInvoker
The script invoker is a service invoker based on either a groovy or juel script.
Author:
Micha Kiener
  • Field Details

  • Constructor Details

  • Method Details

    • invoke

      public ServiceInvocationResultResponse invoke(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext serviceInvocationContext)
    • executeScriptAndGetResult

      protected VariableContainer executeScriptAndGetResult(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext context)
      Executes the service definition using the scripting engines and the language defined in the script based service definition. The input parameters are exposed directly into the script context. The output value is captured through an output container containing the resulting data populated during script execution.
      Parameters:
      serviceDefinition - the service definition to be executed
      serviceOperation - the service operation to be executed
      context - the service invocation context used for the invocation
      Returns:
      the variable container which will contain the output parameters set during script execution