Class ValidateAvailabilityActivity

java.lang.Object
org.broadleafcommerce.core.workflow.BaseActivity<ProcessContext<CheckoutSeed>>
org.broadleafcommerce.core.checkout.service.workflow.ValidateAvailabilityActivity
All Implemented Interfaces:
Activity<ProcessContext<CheckoutSeed>>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.core.Ordered

@Component("blValidateAvailabilityActivity") public class ValidateAvailabilityActivity extends BaseActivity<ProcessContext<CheckoutSeed>>
This will check the availability and quantities (if applicable) all order items in checkout request. Very similar to the CheckUpdateAvailabilityActivity but in the blCheckoutWorkflow instead. This should prevent succeed checkout, in case, when Sku became unavailable in range after it was adding to the cart and before completing the order.