Class FluentGroovyService

java.lang.Object
com.avoka.fc.core.service.fluent.AbstractFluentService
com.avoka.fc.core.service.fluent.FluentGroovyService
All Implemented Interfaces:
IFluentService, IGroovyService, IServiceDefinitionAware, IUnitTestableService
Direct Known Subclasses:
FluentSubmissionPreprocessor

public class FluentGroovyService extends AbstractFluentService implements IGroovyService
Provides a Fluent API Groovy Service.
Since:
5.0.0
  • Constructor Details

    • FluentGroovyService

      public FluentGroovyService()
  • Method Details

    • invokeService

      public Object invokeService(Map<String,Object> parameters)
      Invoke the configured Fluent 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
      See Also:
    • getErrorType

      public String getErrorType()
      Specified by:
      getErrorType in interface IFluentService
      Returns:
      the service error type to be used to classify the error logging records