Class 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 Details

    • GroovyDeliveryProcessService

      public GroovyDeliveryProcessService()
  • 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
    • 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 interface IDeliveryProcessService
      Parameters:
      submission - the submission to deliver
      deliveryDetails - 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 interface IDeliveryProcessService
      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 interface IDeliveryProcessService
      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 interface IDeliveryProcessService
      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 interface IDeliveryProcessService
      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