Class CheckoutCompletionMessagingErrorHandler

java.lang.Object
com.broadleafcommerce.orderoperation.service.messaging.checkout.CheckoutCompletionMessagingErrorHandler
All Implemented Interfaces:
MessagingErrorHandler

public class CheckoutCompletionMessagingErrorHandler extends Object implements MessagingErrorHandler
Perform any required post-processing actions if checkout completion processing fails all attempts. Post-processing includes clearing any existing locks for which no active workflows exist.
Since:
Order Operation Service 2.2.0, Release Train 2.3.0
  • Constructor Details

    • CheckoutCompletionMessagingErrorHandler

      public CheckoutCompletionMessagingErrorHandler(SubscriptionGenerationService<com.broadleafcommerce.order.client.domain.Order,com.broadleafcommerce.order.client.domain.OrderFulfillment,SubscriptionWithItems> subscriptionGenerationService, com.broadleafcommerce.orchestration.service.provider.external.WorkflowProvider externalWorkflowProvider, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CartProvider cartProvider)
  • Method Details

    • error

      public void error(org.springframework.messaging.support.ErrorMessage errorMessage)
      Description copied from interface: MessagingErrorHandler
      Logs the error and performs any required post-processing actions
      Specified by:
      error in interface MessagingErrorHandler
    • getAllExistingSubscriptionsWithoutWorkflows

      protected Set<String> getAllExistingSubscriptionsWithoutWorkflows(CheckoutCompletionEvent event)
      Returns a collection of all existing subscription ids that are associated with the event, but that do not have an active workflow.
      Parameters:
      event - The completion event containing relevant subscription information for the completed cart
      Returns:
      A collection of all existing subscription ids that are associated with the event, but that do not have an active workflow
    • populateActualCart

      protected com.broadleafcommerce.cart.client.domain.Cart populateActualCart(CheckoutCompletionEvent event)
    • populateCartItems

      protected void populateCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, CheckoutCompletionEvent event)
    • getSubscriptionGenerationService

      protected SubscriptionGenerationService<com.broadleafcommerce.order.client.domain.Order,com.broadleafcommerce.order.client.domain.OrderFulfillment,SubscriptionWithItems> getSubscriptionGenerationService()
    • getExternalWorkflowProvider

      protected com.broadleafcommerce.orchestration.service.provider.external.WorkflowProvider getExternalWorkflowProvider()
    • getObjectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
    • getCartProvider

      protected CartProvider getCartProvider()