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 Summary
ConstructorsConstructorDescriptionCheckoutCompletionMessagingErrorHandler(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 Summary
Modifier and TypeMethodDescriptionvoiderror(org.springframework.messaging.support.ErrorMessage errorMessage) Logs the error and performs any required post-processing actionsReturns a collection of all existing subscription ids that are associated with the event, but that do not have an active workflow.protected CartProviderprotected com.broadleafcommerce.orchestration.service.provider.external.WorkflowProviderprotected com.fasterxml.jackson.databind.ObjectMapperprotected SubscriptionGenerationService<com.broadleafcommerce.order.client.domain.Order,com.broadleafcommerce.order.client.domain.OrderFulfillment, SubscriptionWithItems> protected com.broadleafcommerce.cart.client.domain.Cartprotected voidpopulateCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, CheckoutCompletionEvent event)
-
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:MessagingErrorHandlerLogs the error and performs any required post-processing actions- Specified by:
errorin interfaceMessagingErrorHandler
-
getAllExistingSubscriptionsWithoutWorkflows
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, getSubscriptionGenerationService()SubscriptionWithItems> -
getExternalWorkflowProvider
protected com.broadleafcommerce.orchestration.service.provider.external.WorkflowProvider getExternalWorkflowProvider() -
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
getCartProvider
-