public class BusinessProcessEventSynchronization
extends java.lang.Object
implements javax.transaction.Synchronization
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
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected BusinessProcessEventMessage |
mBusinessProcessEvent |
protected java.lang.String |
mBusinessProcessEventType |
protected BusinessProcessManager |
mBusinessProcessManager |
Constructor and Description |
---|
BusinessProcessEventSynchronization(BusinessProcessManager pBusinessProcessManager,
BusinessProcessEventMessage pBusinessProcessEvent,
java.lang.String pBusinessProcessEventType)
Constructs a new BusinessProcessEventSynchronization object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static java.lang.String CLASS_VERSION
protected BusinessProcessEventMessage mBusinessProcessEvent
protected java.lang.String mBusinessProcessEventType
protected BusinessProcessManager mBusinessProcessManager
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 eventpublic 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.Synchronization
pStatus
- - transaction completion status.public void beforeCompletion()
beforeCompletion
in interface javax.transaction.Synchronization