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.-
Field Summary
FieldsFields inherited from class org.broadleafcommerce.core.workflow.BaseActivity
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfigurationFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ProcessContext<CheckoutSeed> context) Called by the encompassing processor to activate the execution of the ActivityMethods inherited from class org.broadleafcommerce.core.workflow.BaseActivity
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecute
-
Field Details
-
ORDER
public static final int ORDER- See Also:
-
inventoryService
-
-
Constructor Details
-
ValidateAvailabilityActivity
public ValidateAvailabilityActivity()
-
-
Method Details