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
,IServiceDefinitionAware
,IUnitTestableService
public class GroovyDeliveryProcessService extends AbstractGroovyService implements IDeliveryProcessService
Provides a Groovy Script based submission delivery process.- See Also:
DeliveryCheckpointService
-
-
Constructor Summary
Constructors Constructor Description GroovyDeliveryProcessService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
deliverSubmission(Submission submission, DeliveryDetails deliveryDetails)
Deliver the given submission using a Groovy Script delivery process and return a delivery process invocation identifier if applicable.String
getErrorType()
int
getMaxCheckpointDeliveryAttempts()
Return the maximum number of times the checkpoint delivery process should be attempted.int
getMaxDeliveryAttempts()
Return the maximum number of times the form submission delivery should be attempted if an error occurs.int
getRetryDelayMins()
Return the minimum submission delivery retry in minutes.boolean
isDeliverAttachments()
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, getGroovyScript, getGroovyServiceLog, getServiceDefinition, getServiceName, getServiceNameAndVersion, getServiceTimeout, getTestLogOutput, isExceptionDebugLoggingEnabled, isGroovyDebugLogging, isGroovyLoggingEnabled, isGroovyTypeChecked, runUnitTest, setExceptionDebugLoggingEnabled, setExecutionTimeout, setGroovyDebugLogging, setGroovyLoggingEnabled, setGroovyScript, setGroovyTypeChecked, setServiceDefinition, setUseModuleClassLoader
-
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
-
-
-
Method Detail
-
getErrorType
public String 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:
IDeliveryProcessService.deliverSubmission(Submission, DeliveryDetails)
-
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:
IDeliveryProcessService.getMaxDeliveryAttempts()
-
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:
IDeliveryProcessService.getMaxCheckpointDeliveryAttempts()
-
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:
IDeliveryProcessService.getRetryDelayMins()
-
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:
IDeliveryProcessService.isDeliverAttachments()
-
setDeliverAttachments
public void setDeliverAttachments(boolean deliverAttachments)
Sets the deliver attachments.- Parameters:
deliverAttachments
- the new deliver attachments
-
-