Package com.avoka.fc.core.service.fluent
Class FluentGroovyService
java.lang.Object
com.avoka.fc.core.service.fluent.AbstractFluentService
com.avoka.fc.core.service.fluent.FluentGroovyService
- All Implemented Interfaces:
IFluentService
,IGroovyDebugLogService
,IGroovyService
,IServiceDefinitionAware
,IUnitTestableService
- Direct Known Subclasses:
FluentSubmissionPreprocessor
Provides a Fluent API Groovy Service.
- Since:
- 5.0.0
-
Field Summary
Fields inherited from class com.avoka.fc.core.service.fluent.AbstractFluentService
inputParams
Fields inherited from interface com.avoka.fc.core.service.fluent.IFluentService
PARAM_ACTION_PROPERTIES, PARAMS_FILEDATA, PARAMS_FILENAME, PARAMS_FORM, PARAMS_FORM_XML, PARAMS_FUNC_PARAM, PARAMS_JOB, PARAMS_JOB_ACTION, PARAMS_PARAMS, PARAMS_REQUEST, PARAMS_ROWS, PARAMS_SVC_DEF, PARAMS_TEST_PARAMS, PARAMS_TXN, PARAMS_USER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninvokeService
(Map<String, Object> parameters) Invoke the configured Fluent groovyScript, passing the given parameters and returning the script result.Methods inherited from class com.avoka.fc.core.service.fluent.AbstractFluentService
buildErrorMessage, createExceptionAndLog, getCause, getClient, getCommitChanges, getExecutionTimeout, getFunctionTrigger, getGroovyDebugLogging, getGroovyScript, getGroovyServiceLog, getLogger, getRequestUser, getServiceDefinition, getServiceNameAndVersion, getServiceTimeout, getSlf4jLogger, getTestLogOutput, invoke, isExceptionDebugLoggingEnabled, isGroovyLoggingEnabled, runUnitTest, setCommitChanges, setExceptionDebugLoggingEnabled, setExecutionTimeout, setGroovyDebugLogging, setGroovyLoggingEnabled, setGroovyScript, setLogger, setServiceDefinition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.avoka.fc.core.service.IGroovyDebugLogService
isGroovyDebugLogging
Methods inherited from interface com.avoka.fc.core.service.IServiceDefinitionAware
getServiceDefinition, setServiceDefinition
-
Constructor Details
-
FluentGroovyService
public FluentGroovyService()
-
-
Method Details
-
invokeService
Invoke the configured Fluent groovyScript, passing the given parameters and returning the script result.- Specified by:
invokeService
in interfaceIGroovyService
- Parameters:
parameters
- the script parameters- Returns:
- the results of the Groovy script invocation
- See Also:
-
getErrorType
- Specified by:
getErrorType
in interfaceIFluentService
- Returns:
- the service error type to be used to classify the error logging records
-