Class FluentDeliveryProcessService

java.lang.Object
com.avoka.fc.core.service.fluent.AbstractFluentService
com.avoka.fc.core.service.fluent.FluentDeliveryProcessService
All Implemented Interfaces:
IFluentService, IDeliveryProcessService, IGroovyDebugLogService, IServiceDefinitionAware, IUnitTestableService

public class FluentDeliveryProcessService extends AbstractFluentService implements IDeliveryProcessService
Provides a Fluent API Groovy script delivery process service.
  • Constructor Details

    • FluentDeliveryProcessService

      public FluentDeliveryProcessService()
  • Method Details

    • deliverSubmission

      public Object deliverSubmission(Submission submission, DeliveryDetails deliveryDetails) throws DeliveryException
      Deliver the given submission using a Fluent 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 (required)
      deliveryDetails - the submission delivery details (required)
      Returns:
      null, or the DeliveryResult object
      Throws:
      DeliveryException - if an error occurs
      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
    • 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
      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
    • 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()
      Description copied from interface: IDeliveryProcessService
      Return true if attachments are going to be delivered.
      Specified by:
      isDeliverAttachments in interface IDeliveryProcessService
      Returns:
      true