public class ValidateAddRequestActivity extends BaseActivity<ProcessContext<CartOperationRequest>>
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected OrderItemService |
orderItemService |
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,
Map<String,String> attributeValues) |
protected Sku |
determineSku(Product product,
Long skuId,
Map<String,String> attributeValues,
ActivityMessages messages) |
ProcessContext<CartOperationRequest> |
execute(ProcessContext<CartOperationRequest> context)
Called by the encompassing processor to activate
the execution of the Activity
|
protected Sku |
findMatchingSku(Product product,
Map<String,String> attributeValues,
ActivityMessages messages) |
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecuteprotected OrderService orderService
protected CatalogService catalogService
protected ProductOptionValidationService productOptionValidationService
protected OrderItemService orderItemService
public ProcessContext<CartOperationRequest> execute(ProcessContext<CartOperationRequest> context) throws Exception
Activitycontext - - process context for this workflowExceptionprotected Sku determineSku(Product product, Long skuId, Map<String,String> attributeValues, ActivityMessages messages)
protected Sku findMatchingSku(Product product, Map<String,String> attributeValues, ActivityMessages messages)
Copyright © 2015. All Rights Reserved.