public class VerifyCustomerMaxOfferUsesActivity extends BaseActivity<ProcessContext<CheckoutSeed>>
Checks the offers being used in the order to make sure that the customer
has not exceeded the max uses for the Offer.
OfferCodes that were used to retrieve the Offers.| Modifier and Type | Field and Description |
|---|---|
protected static String |
BL_PARENT_ORDER |
protected VerifyCustomerMaxOfferUsesActivityExtensionManager |
extensionManager |
protected OfferAuditService |
offerAuditService |
protected OfferService |
offerService |
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfiguration| Constructor and Description |
|---|
VerifyCustomerMaxOfferUsesActivity() |
| Modifier and Type | Method and Description |
|---|---|
ProcessContext<CheckoutSeed> |
execute(ProcessContext<CheckoutSeed> context)
Called by the encompassing processor to activate
the execution of the Activity
|
protected ProcessContext<CheckoutSeed> |
verify(ProcessContext<CheckoutSeed> context) |
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecuteprotected static final String BL_PARENT_ORDER
protected OfferAuditService offerAuditService
protected OfferService offerService
protected VerifyCustomerMaxOfferUsesActivityExtensionManager extensionManager
public ProcessContext<CheckoutSeed> execute(ProcessContext<CheckoutSeed> context) throws Exception
Activitycontext - - process context for this workflowExceptionprotected ProcessContext<CheckoutSeed> verify(ProcessContext<CheckoutSeed> context) throws OfferMaxUseExceededException
OfferMaxUseExceededExceptionCopyright © 2017. All rights reserved.