org.broadleafcommerce.core.pricing.service.workflow
Class ConsolidateFulfillmentFeesActivity

java.lang.Object
  extended by org.broadleafcommerce.core.workflow.BaseActivity
      extended by org.broadleafcommerce.core.pricing.service.workflow.ConsolidateFulfillmentFeesActivity
All Implemented Interfaces:
Activity, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

public class ConsolidateFulfillmentFeesActivity
extends BaseActivity

Author:
Phillip Verheyden

Field Summary
protected static Map EXPRESSION_CACHE
           
protected  FulfillmentGroupService fulfillmentGroupService
           
 
Constructor Summary
ConsolidateFulfillmentFeesActivity()
           
 
Method Summary
 ProcessContext execute(ProcessContext context)
          Called by the encompassing processor to activate the execution of the Activity
protected  boolean shouldApplyFeeToFulfillmentGroup(SkuFee fee, FulfillmentGroup fulfillmentGroup)
          If the SkuFee expression is null or empty, this method will always return true
 
Methods inherited from class org.broadleafcommerce.core.workflow.BaseActivity
getBeanName, getErrorHandler, setBeanName, setErrorHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPRESSION_CACHE

protected static final Map EXPRESSION_CACHE

fulfillmentGroupService

protected FulfillmentGroupService fulfillmentGroupService
Constructor Detail

ConsolidateFulfillmentFeesActivity

public ConsolidateFulfillmentFeesActivity()
Method Detail

execute

public ProcessContext execute(ProcessContext 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

shouldApplyFeeToFulfillmentGroup

protected boolean shouldApplyFeeToFulfillmentGroup(SkuFee fee,
                                                   FulfillmentGroup fulfillmentGroup)
If the SkuFee expression is null or empty, this method will always return true

Parameters:
fee -
fulfillmentGroup -
Returns:


Copyright © 2012. All Rights Reserved.