public class ValidateAddRequestActivity extends BaseActivity<CartOperationContext>
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected OrderService |
orderService |
protected ProductOptionValidationService |
productOptionValidationService |
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfiguration| Constructor and Description |
|---|
ValidateAddRequestActivity() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkSkuForMatch(Sku sku,
java.util.Map<java.lang.String,java.lang.String> attributeValues) |
protected Sku |
determineSku(Product product,
java.lang.Long skuId,
java.util.Map<java.lang.String,java.lang.String> attributeValues) |
CartOperationContext |
execute(CartOperationContext context)
Called by the encompassing processor to activate
the execution of the Activity
|
protected Sku |
findMatchingSku(Product product,
java.util.Map<java.lang.String,java.lang.String> attributeValues) |
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecuteprotected OrderService orderService
protected CatalogService catalogService
protected ProductOptionValidationService productOptionValidationService
public CartOperationContext execute(CartOperationContext context) throws java.lang.Exception
Activitycontext - - process context for this workflowjava.lang.Exceptionprotected Sku determineSku(Product product, java.lang.Long skuId, java.util.Map<java.lang.String,java.lang.String> attributeValues)
protected Sku findMatchingSku(Product product, java.util.Map<java.lang.String,java.lang.String> attributeValues)
protected boolean checkSkuForMatch(Sku sku, java.util.Map<java.lang.String,java.lang.String> attributeValues)
Copyright © 2018. All Rights Reserved.