Transaction Server notifying the Distribution engine
The Transaction Server scheduler uses Messaging API event configurations to provide the messages the Distribution engine processes. The messages need to be sent to the queue where the Distribution engine listens for Transaction Server notifications. These events are defined in the Scheduler.xml file. For more information about using the events, see Events and communication with external applications.
<EVENT>
<NAME>Distribution Profile - States Reached</NAME>
<TYPE>PresentmentStateChange</TYPE>
<EXEC>
com.ibm.paydir.ima.txsvr.event.appbridge.PresentmentReadyEventHandler
</EXEC>
<PARAMETER name="msgType">presStatesReached</PARAMETER>
<PARAMETER name="parmFileName">PresentmentProfile.properties</PARAMETER>
<PARAMETER name="presStates1">BALANCED</PARAMETER>
<PARAMETER name="presStates2">BALANCED,REVIEWED</PARAMETER>
<PARAMETER name="presStates3">BALANCED,REPAIRED</PARAMETER>
</EVENT>
<EVENT>
<NAME>Distribution Profile - Payment Ready</NAME>
<TYPE>PaymentExceptionChange</TYPE>
<EXEC>
com.ibm.paydir.ima.txsvr.event.appbridge.PaymentReadyEventHandler
</EXEC>
<PARAMETER name="msgType">paymentReady</PARAMETER>
<PARAMETER name="parmFileName">PresentmentProfile.properties</PARAMETER>
<PARAMETER name="minPresStates">BALANCED</PARAMETER>
</EVENT>
<EVENT>
<NAME>Distribution Profile - End of Day Check</NAME>
<TYPE>EndOfDayCheck</TYPE>
<EXEC>
com.ibm.paydir.ima.txsvr.event.appbridge.EndOfDayCheckEventHandler
</EXEC>
<PARAMETER name="msgType">endOfDayCheck</PARAMETER>
<PARAMETER name="parmFileName">PresentmentProfile.properties</PARAMETER>
</EVENT>
<EVENT>
<NAME>Distribution Profile - Business Day Purge</NAME>
<TYPE>BusinessDayPurgeEvent</TYPE>
<EXEC>
com.ibm.paydir.ima.txsvr.event.appbridge.PurgeEventHandler
</EXEC>
<PARAMETER name="msgType">purgeBusinessDay</PARAMETER>
<PARAMETER name="parmFileName">PresentmentProfile.properties</PARAMETER>
<PARAMETER name="purgeEventType">2</PARAMETER>
</EVENT>Several parameters that are common to all Messaging API events must be configured. For more information about how to specify these parameters, see Setting Up a Messaging API Event Handler.
The following sections describe the events that are configured in the example XML.
PresentmentStateChange event for batch (ICL) state changes
When a batch (ICL) reaches a specific set of states, the PresentmentReadyEventHandler is configured to send a notification to the specified message queue. This notification enables the Distribution engine to react when all of the state sets configured in the scheduler XML are reached.
- The unit of work contains the batch (ICL) ID of the batch (ICL) whose state was set.
- The payload contains the comma-delimited set of states that were reached.
BALANCEDBALANCED,REVIEWEDBALANCED,REPAIRED
For more information about using the PresentmentReadyEventHandler, see PresentmentReadyEventHandler.
Payment ready
The sample XML shows the configuration that is needed to send a paymentReady message to Distribution when a PaymentExceptionChange event occurs. The event handler posts the message when the transaction is BALANCED.
For more information about using the PaymentReadyEventHandler, see PaymentReadyEventHandler.
End of day check
When the Transaction Server receives a request to do an end of day task for a specified business day, it can notify any number of external applications. The Transaction Server uses the EndOfDayCheckEventHandler to notify applications that the end of day processing is occurring.
The sample XML shows the configuration that is needed to send an endOfDayCheck message to Distribution when an EndOfDayCheck event occurs. No additional parameters are needed by this event handler.
Alternately, the event handler can be temporarily unconfigured and the end of day task can be run without requiring notification of the Distribution engine.
For more information about using the EndOfDayCheckEventHandler, see EndOfDayCheckEventHandler.
Business day purge
The sample XML shows the configuration that is needed to send a purgeBusinessDay message to Distribution when the Transaction Server purges the data for a business day.
For more information about using the PurgeEventHandler, see PurgeEventHandler.