| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.markers.bp.BusinessProcessEventSynchronization
public class BusinessProcessEventSynchronization
This transaction synchronization class is used for sending business process event messages. Objects of this type are created by the BusinessProcessManager.
A synchronization object is used to ensure that the transaction, in which the event was created, has been successfully commited before the event is sent.
BusinessProcessManager| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| protected  BusinessProcessEventMessage | mBusinessProcessEvent | 
| protected  java.lang.String | mBusinessProcessEventType | 
| protected  BusinessProcessManager | mBusinessProcessManager | 
| Constructor Summary | |
|---|---|
| BusinessProcessEventSynchronization(BusinessProcessManager pBusinessProcessManager,
                                    BusinessProcessEventMessage pBusinessProcessEvent,
                                    java.lang.String pBusinessProcessEventType)Constructs a new BusinessProcessEventSynchronization object. | |
| Method Summary | |
|---|---|
|  void | afterCompletion(int pStatus)This method sends the business process event messages through the Business Process Manager's messageSource. | 
|  void | beforeCompletion()No-op implementation of beforeCompletion | 
|  BusinessProcessEventMessage | getBusinessProcessEvent()Returns BusinessProcessEvent that will be sent. | 
|  java.lang.String | getBusinessProcessEventType()Returns the JMS Message type used when sending the event message | 
|  BusinessProcessManager | getBusinessProcessManager()Returns property BusinessProcessManager | 
|  void | setBusinessProcessEvent(BusinessProcessEventMessage pBusinessProcessEvent)Sets the BusinessProcessEvent that will be sent. | 
|  void | setBusinessProcessEventType(java.lang.String pBusinessProcessEventType)property BusinessProcessEventType Sets the JMS Message type used when sending the event message | 
|  void | setBusinessProcessManager(BusinessProcessManager pBusinessProcessManager)Sets the instance of BusinessProcessManager that created the instance of this object. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
protected BusinessProcessEventMessage mBusinessProcessEvent
protected java.lang.String mBusinessProcessEventType
protected BusinessProcessManager mBusinessProcessManager
| Constructor Detail | 
|---|
public BusinessProcessEventSynchronization(BusinessProcessManager pBusinessProcessManager,
                                           BusinessProcessEventMessage pBusinessProcessEvent,
                                           java.lang.String pBusinessProcessEventType)
pBusinessProcessManager - the business process manager that is triggering the event.pBusinessProcessEvent - the eventpBusinessProcessEventType - the jms type of the event| Method Detail | 
|---|
public void setBusinessProcessEvent(BusinessProcessEventMessage pBusinessProcessEvent)
public BusinessProcessEventMessage getBusinessProcessEvent()
public void setBusinessProcessEventType(java.lang.String pBusinessProcessEventType)
public java.lang.String getBusinessProcessEventType()
public void setBusinessProcessManager(BusinessProcessManager pBusinessProcessManager)
public BusinessProcessManager getBusinessProcessManager()
public void afterCompletion(int pStatus)
 pStatus must be STATUS_COMMITTED for messages to be triggered.
 
afterCompletion in interface javax.transaction.SynchronizationpStatus - - transaction completion status.public void beforeCompletion()
beforeCompletion in interface javax.transaction.Synchronization| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||