Class CountTotalOffersActivity
java.lang.Object
org.broadleafcommerce.core.workflow.BaseActivity<ProcessContext<Order>>
org.broadleafcommerce.core.pricing.service.workflow.CountTotalOffersActivity
- All Implemented Interfaces:
Activity<ProcessContext<Order>>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.core.Ordered
@Component("blCountTotalOffersActivity")
public class CountTotalOffersActivity
extends BaseActivity<ProcessContext<Order>>
This class is used in conjunction with the
DetermineOfferChangeActivity to determine if the number
of offers changed on the order during the pricing workflow. This is important in determining if an offer
expired between the last time the order was priced and when the order was about to be sent through checkout.- Author:
- Jay Aisenbrey (cja769)
-
Field Summary
FieldsFields 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 TypeMethodDescriptionconvertOffersToIds(Set<Offer> offers) execute(ProcessContext<Order> context) Called by the encompassing processor to activate the execution of the ActivityMethods 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:
-
offerService
-
-
Constructor Details
-
CountTotalOffersActivity
public CountTotalOffersActivity()
-
-
Method Details