Class CheckoutRollbackEvent
java.lang.Object
com.broadleafcommerce.cartoperation.service.messaging.rollback.CheckoutRollbackEvent
- All Implemented Interfaces:
Serializable
A message event dispatched when a
CheckoutWorkflow encounters an unrecoverable error &
must roll back the work of its CheckoutWorkflowActivities. This
event should primarily be consumed in this service as a means of triggering each activity's
CheckoutWorkflowActivity#rollback(Cart, String) method.- Author:
- Chris Kittrell (ckittrell)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe id of the cart that was submitted for checkoutcom.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfoderived from the original request containing tenant and sandbox info.The id representing this request to checkout This value can be used to identify entities that were produced due to this request and therefore need to be rolled backvoidThe id of the cart that was submitted for checkoutvoidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidsetRequestId(String requestId) The id representing this request to checkout This value can be used to identify entities that were produced due to this request and therefore need to be rolled back
-
Constructor Details
-
CheckoutRollbackEvent
public CheckoutRollbackEvent()
-
-
Method Details
-
getCartId
The id of the cart that was submitted for checkout- Returns:
- The id of the cart that was submitted for checkout
-
getRequestId
The id representing this request to checkout This value can be used to identify entities that were produced due to this request and therefore need to be rolled back- Returns:
- The id representing this request to checkout
-
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfoderived from the original request
-
setCartId
The id of the cart that was submitted for checkout -
setRequestId
The id representing this request to checkout This value can be used to identify entities that were produced due to this request and therefore need to be rolled back -
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.
-