public class ValidateProductOptionsActivity extends BaseActivity<ProcessContext<CheckoutSeed>>
| Modifier and Type | Field and Description |
|---|---|
protected ProductOptionValidationService |
productOptionValidationService |
protected boolean |
useSku |
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfiguration| Constructor and Description |
|---|
ValidateProductOptionsActivity() |
| Modifier and Type | Method and Description |
|---|---|
ProcessContext<CheckoutSeed> |
execute(ProcessContext<CheckoutSeed> context)
Called by the encompassing processor to activate
the execution of the Activity
|
protected List<DiscreteOrderItem> |
getOrderItems(Order order) |
ProductOptionValidationStrategyType |
getProductOptionValidationStrategyType() |
protected boolean |
isMissingRequiredAttribute(boolean isRequired,
boolean hasStrategy,
boolean isAddOrNoneType,
boolean isSubmitType,
String attributeValue) |
protected boolean |
shouldValidateWithException(boolean hasValidationType,
boolean hasStrategy,
boolean isAddOrNoneType,
boolean isSubmitType) |
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecute@Value(value="${solr.index.use.sku}")
protected boolean useSku
protected ProductOptionValidationService productOptionValidationService
public ProcessContext<CheckoutSeed> execute(ProcessContext<CheckoutSeed> context) throws Exception
Activitycontext - - process context for this workflowExceptionprotected List<DiscreteOrderItem> getOrderItems(Order order)
protected boolean shouldValidateWithException(boolean hasValidationType,
boolean hasStrategy,
boolean isAddOrNoneType,
boolean isSubmitType)
protected boolean isMissingRequiredAttribute(boolean isRequired,
boolean hasStrategy,
boolean isAddOrNoneType,
boolean isSubmitType,
String attributeValue)
public ProductOptionValidationStrategyType getProductOptionValidationStrategyType()
Copyright © 2025. All rights reserved.