Class ConsolidateFulfillmentFeesActivity
java.lang.Object
org.broadleafcommerce.core.workflow.BaseActivity<ProcessContext<Order>>
org.broadleafcommerce.core.pricing.service.workflow.ConsolidateFulfillmentFeesActivity
- All Implemented Interfaces:
Activity<ProcessContext<Order>>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.core.Ordered
@Component("blConsolidateFulfillmentFeesActivity")
public class ConsolidateFulfillmentFeesActivity
extends BaseActivity<ProcessContext<Order>>
- Author:
- Phillip Verheyden
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Mapprotected FulfillmentGroupServicestatic final intFields inherited from class org.broadleafcommerce.core.workflow.BaseActivity
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfigurationFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ProcessContext<Order> context) Called by the encompassing processor to activate the execution of the Activityprotected booleanshouldApplyFeeToFulfillmentGroup(SkuFee fee, FulfillmentGroup fulfillmentGroup) If the SkuFee expression is null or empty, this method will always return trueMethods inherited from class org.broadleafcommerce.core.workflow.BaseActivity
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecute
-
Field Details
-
ORDER
public static final int ORDER- See Also:
-
EXPRESSION_CACHE
-
fulfillmentGroupService
-
-
Constructor Details
-
ConsolidateFulfillmentFeesActivity
public ConsolidateFulfillmentFeesActivity()
-
-
Method Details
-
execute
Description copied from interface:ActivityCalled 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
If the SkuFee expression is null or empty, this method will always return true- Parameters:
fee-fulfillmentGroup-- Returns:
-