public interface CheckoutService
| Modifier and Type | Method and Description |
|---|---|
CheckoutResponse |
performCheckout(Order order)
Checks out an order by executing the blCheckoutWorkflow.
|
CheckoutResponse performCheckout(Order order) throws CheckoutException
Checks out an order by executing the blCheckoutWorkflow. The order is saved both before and after the workflow is executed so that activities can modify the various entities on and related to the order.
This method is also thread-safe; 2 requests cannot attempt to check out the same order
order - the order to be checked outCheckoutException - if there are any exceptions while executing any of the activities in the workflow (assuming
that the workflow does not already have a preconfigured error handler) or if the given order has already been
checked out (in Broadleaf terms this means the order has already been changed to OrderStatus.SUBMITTED)Copyright © 2014. All Rights Reserved.