public class AutoBundleActivity extends BaseActivity<PricingContext>
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected FulfillmentGroupItemDao |
fulfillmentGroupItemDao |
protected OrderItemDao |
orderItemDao |
protected OrderService |
orderService |
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfiguration| Constructor and Description |
|---|
AutoBundleActivity() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
countExistingUsesOfBundle(Order order,
ProductBundle bundle) |
protected int |
countMaximumApplications(Order order,
SkuBundleItem skuBundleItem,
Set<Long> processedBundles) |
PricingContext |
execute(PricingContext context)
Called by the encompassing processor to activate
the execution of the Activity
|
Order |
handleAutomaticBundling(Order order) |
protected int |
populateItemMatchesForSku(List<DiscreteOrderItem> matchingItems,
Order order,
List<DiscreteOrderItem> unbundledItems,
Long skuId) |
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecuteprotected CatalogService catalogService
protected OrderService orderService
protected OrderItemDao orderItemDao
protected FulfillmentGroupItemDao fulfillmentGroupItemDao
public PricingContext execute(PricingContext context) throws Exception
Activitycontext - - process context for this workflowExceptionpublic Order handleAutomaticBundling(Order order) throws PricingException, RemoveFromCartException
protected int countExistingUsesOfBundle(Order order, ProductBundle bundle)
protected int populateItemMatchesForSku(List<DiscreteOrderItem> matchingItems, Order order, List<DiscreteOrderItem> unbundledItems, Long skuId)
protected int countMaximumApplications(Order order, SkuBundleItem skuBundleItem, Set<Long> processedBundles)
Copyright © 2014. All Rights Reserved.