org.broadleafcommerce.core.checkout.service.workflow
Class ValidateProductOptionsActivity

java.lang.Object
  extended by org.broadleafcommerce.core.workflow.BaseActivity<ProcessContext<CheckoutSeed>>
      extended by org.broadleafcommerce.core.checkout.service.workflow.ValidateProductOptionsActivity
All Implemented Interfaces:
Activity<ProcessContext<CheckoutSeed>>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.core.Ordered

public class ValidateProductOptionsActivity
extends BaseActivity<ProcessContext<CheckoutSeed>>

This is an required activity to valiate if required product options are in the order.

Author:
Priyesh Patel

Field Summary
protected  CatalogService catalogService
           
protected  OrderService orderService
           
protected  ProductOptionValidationService productOptionValidationService
           
 
Fields inherited from class org.broadleafcommerce.core.workflow.BaseActivity
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfiguration
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
ValidateProductOptionsActivity()
           
 
Method Summary
 ProcessContext<CheckoutSeed> execute(ProcessContext<CheckoutSeed> context)
          Called by the encompassing processor to activate the execution of the Activity
 ProductOptionValidationStrategyType getProductOptionValidationStrategyType()
           
 
Methods inherited from class org.broadleafcommerce.core.workflow.BaseActivity
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orderService

protected OrderService orderService

catalogService

protected CatalogService catalogService

productOptionValidationService

protected ProductOptionValidationService productOptionValidationService
Constructor Detail

ValidateProductOptionsActivity

public ValidateProductOptionsActivity()
Method Detail

execute

public ProcessContext<CheckoutSeed> execute(ProcessContext<CheckoutSeed> context)
                                     throws Exception
Description copied from interface: Activity
Called by the encompassing processor to activate the execution of the Activity

Parameters:
context - - process context for this workflow
Returns:
resulting process context
Throws:
Exception

getProductOptionValidationStrategyType

public ProductOptionValidationStrategyType getProductOptionValidationStrategyType()


Copyright © 2013. All Rights Reserved.