@Component(value="blValidateAvailabilityActivity") public class ValidateAvailabilityActivity extends BaseActivity<ProcessContext<CheckoutSeed>>
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.| Modifier and Type | Field and Description |
|---|---|
protected ContextualInventoryService |
inventoryService |
static int |
ORDER |
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfiguration| Constructor and Description |
|---|
ValidateAvailabilityActivity() |
| Modifier and Type | Method and Description |
|---|---|
ProcessContext<CheckoutSeed> |
execute(ProcessContext<CheckoutSeed> context)
Called by the encompassing processor to activate
the execution of the Activity
|
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecutepublic static final int ORDER
protected ContextualInventoryService inventoryService
public ProcessContext<CheckoutSeed> execute(ProcessContext<CheckoutSeed> context) throws Exception
Activitycontext - - process context for this workflowExceptionCopyright © 2023. All rights reserved.