public class RecordOfferUsageActivity extends BaseActivity
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
|
| Constructor and Description |
|---|
RecordOfferUsageActivity() |
| Modifier and Type | Method and Description |
|---|---|
ProcessContext |
execute(ProcessContext context)
Called by the encompassing processor to activate
the execution of the Activity
|
boolean |
getAutomaticallyRegisterRollbackHandler()
Do not automatically register for rollbacks since it relies on state existing
|
protected List<OfferAudit> |
saveOfferIds(Set<Offer> offers,
Map<Offer,OfferCode> offerToCodeMapping,
Order order)
Persists each of the offers to the database as
OfferAudits. |
getBeanName, getErrorHandler, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setRollbackHandler, setRollbackRegion, setStateConfigurationpublic static final String SAVED_AUDITS
protected static final org.apache.commons.logging.Log LOG
protected OfferAuditService offerAuditService
protected OfferService offerService
public ProcessContext execute(ProcessContext 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 persistedpublic boolean getAutomaticallyRegisterRollbackHandler()
getAutomaticallyRegisterRollbackHandler in interface ActivitygetAutomaticallyRegisterRollbackHandler in class BaseActivityCopyright © 2014. All Rights Reserved.