Package com.avoka.fc.core.service.impl
Class GroovyDeliveryProcessService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.AbstractGroovyService
com.avoka.fc.core.service.impl.GroovyDeliveryProcessService
- All Implemented Interfaces:
IDeliveryProcessService
,IGroovyDebugLogService
,IServiceDefinitionAware
,IUnitTestableService
public class GroovyDeliveryProcessService
extends AbstractGroovyService
implements IDeliveryProcessService
Provides a Groovy Script based submission delivery process.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeliverSubmission
(Submission submission, DeliveryDetails deliveryDetails) Deliver the given submission using a Groovy Script delivery process and return a delivery process invocation identifier if applicable.int
Return the maximum number of times the checkpoint delivery process should be attempted.int
Return the maximum number of times the form submission delivery should be attempted if an error occurs.int
Return the minimum submission delivery retry in minutes.boolean
Return true if attachments are going to be deliveredvoid
setDeliverAttachments
(boolean deliverAttachments) Sets the deliver attachments.void
setMaxCheckpointDeliveryAttempts
(int maxCheckpointAttempts) Set the maximum number of times the submission checkpoint delivery process should be attempted.void
setMaxDeliveryAttempts
(int maxDeliveryAttempts) Set the maximum number of delivery attempts.void
setRetryDelayMins
(int retryDelayMins) Set the minimum submission delivery retry in minutes.Methods inherited from class com.avoka.fc.core.service.AbstractGroovyService
createExceptionAndLog, executeGroovyScript, executeGroovyScript, getCause, getExecutionTimeout, getGroovyDebugLogging, getGroovyScript, getGroovyServiceLog, getServiceDefinition, getServiceName, getServiceNameAndVersion, getServiceTimeout, getTestLogOutput, isExceptionDebugLoggingEnabled, isGroovyLoggingEnabled, isGroovyTypeChecked, runUnitTest, setExceptionDebugLoggingEnabled, setExecutionTimeout, setGroovyDebugLogging, setGroovyLoggingEnabled, setGroovyScript, setGroovyTypeChecked, setServiceDefinition, setUseModuleClassLoader
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
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
-
Constructor Details
-
GroovyDeliveryProcessService
public GroovyDeliveryProcessService()
-
-
Method Details
-
getErrorType
- Specified by:
getErrorType
in classAbstractGroovyService
- Returns:
- the service error type to be used to classify the error logging records
- Since:
- 4.3.4
-
deliverSubmission
public Object deliverSubmission(Submission submission, DeliveryDetails deliveryDetails) throws DeliveryException Deliver the given submission using a Groovy Script delivery process and return a delivery process invocation identifier if applicable.- Specified by:
deliverSubmission
in interfaceIDeliveryProcessService
- Parameters:
submission
- the submission to deliverdeliveryDetails
- the submission delivery details- Returns:
- null, or the DeliveryResult object
- Throws:
DeliveryException
- if an error occurs- See Also:
-
getMaxDeliveryAttempts
public int getMaxDeliveryAttempts()Description copied from interface:IDeliveryProcessService
Return the maximum number of times the form submission delivery should be attempted if an error occurs.- Specified by:
getMaxDeliveryAttempts
in interfaceIDeliveryProcessService
- Returns:
- the maximum number of attempts at delivery for this service
- See Also:
-
setMaxDeliveryAttempts
public void setMaxDeliveryAttempts(int maxDeliveryAttempts) Set the maximum number of delivery attempts.- Parameters:
maxDeliveryAttempts
- the maximum number of attempts at delivery for this service
-
getMaxCheckpointDeliveryAttempts
public int getMaxCheckpointDeliveryAttempts()Return the maximum number of times the checkpoint delivery process should be attempted.- Specified by:
getMaxCheckpointDeliveryAttempts
in interfaceIDeliveryProcessService
- Returns:
- the maximum number of times the checkpoint delivery process should be attempted
- Since:
- 4.3.4
- See Also:
-
setMaxCheckpointDeliveryAttempts
public void setMaxCheckpointDeliveryAttempts(int maxCheckpointAttempts) Set the maximum number of times the submission checkpoint delivery process should be attempted.- Parameters:
maxCheckpointAttempts
- the maximum number of times the form submission checkpoint delivery process should be attempted- Since:
- 4.3.4
-
getRetryDelayMins
public int getRetryDelayMins()Return the minimum submission delivery retry in minutes.- Specified by:
getRetryDelayMins
in interfaceIDeliveryProcessService
- Returns:
- the minimum submission delivery retry in minutes
- See Also:
-
setRetryDelayMins
public void setRetryDelayMins(int retryDelayMins) Set the minimum submission delivery retry in minutes.- Parameters:
retryDelayMins
- set the minimum submission delivery retry in minutes
-
isDeliverAttachments
public boolean isDeliverAttachments()Return true if attachments are going to be delivered- Specified by:
isDeliverAttachments
in interfaceIDeliveryProcessService
- Returns:
- true if attachments are going to be delivered
- See Also:
-
setDeliverAttachments
public void setDeliverAttachments(boolean deliverAttachments) Sets the deliver attachments.- Parameters:
deliverAttachments
- the new deliver attachments
-