Class GroovyServiceImpl

All Implemented Interfaces:
IGroovyDebugLogService, IGroovyService, IServiceDefinitionAware, IUnitTestableService

public class GroovyServiceImpl extends AbstractGroovyService implements IGroovyService
Provide an interface to invoke arbitrary Groovy services.
Since:
3.5.0
  • Constructor Details

    • GroovyServiceImpl

      public GroovyServiceImpl()
  • Method Details

    • getErrorType

      public String getErrorType()
      Specified by:
      getErrorType in class AbstractGroovyService
      Returns:
      the service error type to be used to classify the error logging records
      Since:
      4.3.4
    • invokeService

      public Object invokeService(Map<String,Object> parameters)
      Invoke the configured groovyScript, passing the given parameters and returning the script result.
      Specified by:
      invokeService in interface IGroovyService
      Parameters:
      parameters - the script parameters
      Returns:
      the results of the Groovy script invocation