public class RecordOfferUsageActivity extends BaseActivity<CheckoutContext>
RecordOfferUsageRollbackHandler}| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOG |
protected OfferAuditService |
offerAuditService |
protected OfferService |
offerService |
static String |
SAVED_AUDITS
Key to retrieve the audits that were persisted
|
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfiguration| Constructor and Description |
|---|
RecordOfferUsageActivity() |
| Modifier and Type | Method and Description |
|---|---|
CheckoutContext |
execute(CheckoutContext context)
Called by the encompassing processor to activate
the execution of the Activity
|
protected List<OfferAudit> |
saveOfferIds(Set<Offer> offers,
Map<Offer,OfferCode> offerToCodeMapping,
Order order)
Persists each of the offers to the database as
OfferAudits. |
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecutepublic static final String SAVED_AUDITS
protected static final org.apache.commons.logging.Log LOG
protected OfferAuditService offerAuditService
protected OfferService offerService
public CheckoutContext execute(CheckoutContext context) throws Exception
Activitycontext - - process context for this workflowExceptionprotected List<OfferAudit> saveOfferIds(Set<Offer> offers, Map<Offer,OfferCode> offerToCodeMapping, Order order)
OfferAudits.OfferAudits that were persistedCopyright © 2014. All Rights Reserved.