Interface CheckoutService

All Known Implementing Classes:
CheckoutServiceImpl

public interface CheckoutService
  • Method Summary

    Modifier and Type
    Method
    Description
    Checks out an order by executing the blCheckoutWorkflow.
  • Method Details

    • performCheckout

      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

      Parameters:
      order - the order to be checked out
      Returns:
      Throws:
      CheckoutException - 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)