atg.commerce.csr.order.edit.processor
Class ProcSendCouponPromotionUsedMessage

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.logging.ApplicationLoggingImpl
          extended by atg.commerce.order.processor.EventSender
              extended by atg.commerce.order.processor.ProcSendPromotionUsedMessage
                  extended by atg.commerce.csr.order.edit.processor.ProcSendCouponPromotionUsedMessage
All Implemented Interfaces:
atg.dms.patchbay.MessageSource, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.service.pipeline.PipelineProcessor

public class ProcSendCouponPromotionUsedMessage
extends atg.commerce.order.processor.ProcSendPromotionUsedMessage

This processor sends promotion used event for coupon promotions claimed by the agent during the edit process.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Fields inherited from class atg.commerce.order.processor.EventSender
FAILURE, SUCCESS
 
Fields inherited from interface atg.service.pipeline.PipelineProcessor
STOP_CHAIN_EXECUTION, STOP_CHAIN_EXECUTION_AND_COMMIT, STOP_CHAIN_EXECUTION_AND_ROLLBACK
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
ProcSendCouponPromotionUsedMessage()
           
 
Method Summary
 int runProcess(java.lang.Object pParam, atg.service.pipeline.PipelineResult pResult)
          Sends promotion used events for any new promotions that were used after modifying the order or for any promotions that increased in use count as a result of the modifications to the order.
 
Methods inherited from class atg.commerce.order.processor.ProcSendPromotionUsedMessage
createEventToSend, createEventToSend, createEventToSend, getLoggingIdentifier, getMessageSourceName, getPromotionTools, setLoggingIdentifier, setMessageSourceName, setPromotionTools
 
Methods inherited from class atg.commerce.order.processor.EventSender
createEventToSend, getEventType, getEventType, getMessageIdGenerator, getMessageIdSpaceName, getMessageSourceContext, getNextMessageId, getPortName, getRetCodes, getSiteId, isAllowMessageSending, sendObjectMessage, setAllowMessageSending, setEventType, setMessageIdGenerator, setMessageIdSpaceName, setMessageSourceContext, setPortName, startMessageSource, stopMessageSource
 
Methods inherited from class atg.nucleus.logging.ApplicationLoggingImpl
addGlobalLogListeners, addLogListener, getLoggingForVlogging, getLoggingIdentifer, getLogListenerCount, getLogListeners, initializeFromServiceEvent, isAutoInitListeners, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, removeLogListener, sendLogEvent, setAutoInitListeners, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values
Constructor Detail

ProcSendCouponPromotionUsedMessage

public ProcSendCouponPromotionUsedMessage()
Method Detail

runProcess

public int runProcess(java.lang.Object pParam,
                      atg.service.pipeline.PipelineResult pResult)
               throws java.lang.Exception
Sends promotion used events for any new promotions that were used after modifying the order or for any promotions that increased in use count as a result of the modifications to the order.

The promotions that were used are stored are determined in another processor and stored in the CloneEditState

Specified by:
runProcess in interface atg.service.pipeline.PipelineProcessor
Overrides:
runProcess in class atg.commerce.order.processor.ProcSendPromotionUsedMessage
Throws:
java.lang.Exception
See Also:
CloneEditManager.CONSUMED_PROMOTIONS