public class BusinessFlowEventListener
extends com.ibm.commerce.event.EventComponentConfiguration
implements com.ibm.commerce.event.WCSEventListener
BusinessFlowEvent
,
BusinessFlowEventData
,
EventComponentConfiguration
Constructor and Description |
---|
BusinessFlowEventListener()
Construct a BusinessFlowEventListener object.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Remove BusinessFlowListener from WCSEventSource.
|
void |
enable(boolean enable)
Add or remove BusinessFlowEventListener from WCSEventSource.
|
boolean |
isTransactionRequired()
Get information about whether a transaction is required.
|
void |
processActivityEvent(com.ibm.commerce.event.WCSEvent event)
Process a BusinessFlowEvent.
|
void |
throwECException(com.ibm.commerce.exception.ECApplicationException anException,
BusinessFlowEventData data)
Add errorMessage, errorStatus, and responseView into responseProeprties, which is set into
the exception, finally throw the exception.
|
public BusinessFlowEventListener() throws java.lang.Exception
java.lang.Exception
public void destroy()
destroy
in interface com.ibm.commerce.server.ComponentConfiguration
destroy
in class com.ibm.commerce.event.EventComponentConfiguration
public void enable(boolean enable) throws java.lang.Exception
enable
in interface com.ibm.commerce.server.ComponentConfiguration
enable
in class com.ibm.commerce.event.EventComponentConfiguration
enable
- The flag to indicate whether BusinessFlowEventListener needs to be added or removed from WCSEventSource.java.lang.Exception
- If the execution fails.public boolean isTransactionRequired()
isTransactionRequired
in interface com.ibm.commerce.event.WCSEventListener
public void processActivityEvent(com.ibm.commerce.event.WCSEvent event) throws com.ibm.commerce.exception.ECException
processActivityEvent
in interface com.ibm.commerce.event.WCSEventListener
event
- The event raised by application to contain information about the request.com.ibm.commerce.exception.ECException
- If the command instantiation and execution fails.public void throwECException(com.ibm.commerce.exception.ECApplicationException anException, BusinessFlowEventData data) throws com.ibm.commerce.exception.ECApplicationException
anException
- The ECApplicationException gets passed in for processing.data
- The BusinessFlowEventData which contains information related to the request.com.ibm.commerce.exception.ECApplicationException
- The ECApplicationException will get thrown after processing.