EntryStatesEventHandler
The EntryStatesEventHandler handles the EntryUowStateChange event.
EXEC specification: com.ibm.paydir.ima.txsvr.event.appbridge.EntryStatesEventHandler
This event handler issues a Messaging API message on the JMS send queue when the EntryUowStateChange event occurs and the state of all of the batches (ICLs) contained in the entry has changed to match the states specified in the entryStates parameter. The message issued to the target contains the ID of the entry that has been either created or changed. Because entry numbers are not unique, an entry ID is used to uniquely identify the entry number created. For example, an entry number of 1234 may be used multiple times and span different business days. The target application uses the entry ID to ensure it processes the correct entry number.
Event parameters
This event handler uses the general Messaging API event handler parameters and parameters that are specific to the event. Event parameters are specified in the Scheduler.xml file.
| Parameter name | Trigger | Type | Value | Description |
|---|---|---|---|---|
| entryStates1 ... entryStatesN | Yes | String | One or more of the batch (ICL) states that can be used for triggers. | A comma delimited list of batch (ICL) state column names. For more information about
using this parameter, see Specifying Triggers. Note: The entryStates1
parameter must be specified to process a EntryUowStateChange event.
|
|
Note: The following list describes what the value in the trigger column means:
|
||||
Message contents
| Message part | Value | Description |
|---|---|---|
| Unit of Work | Entry ID as a long | This value is used to locate the entry number that has been created or changed. |
| Payload | None | No additional payload data is provided within the message other than the unit of work information. |
Response processing
Any response from the target application is ignored.
Example handler XML
This example shows how to initiate the Services Framework CIFFExtractTask task when an entry is loaded.
<EVENT>
<NAME>Entry Loaded Event</NAME>
<TYPE>EntryUowStateChange</TYPE>
<EXEC>
com.ibm.paydir.ima.txsvr.event.appbridge.EntryStatesEventHandler
</EXEC>
<PARAMETER name="msgType">TaskInitiation</PARAMETER>
<PARAMETER name="entryStates">LOADED</PARAMETER>
<PARAMETER name="destinationID">CIFFExtractTask</PARAMETER>
<PARAMETER name="jmsQmgrHostname">localhost</PARAMETER>
<PARAMETER name="jmsQmgrChannel">SYSTEM.DEF.SVRCONN</PARAMETER>
<PARAMETER name="jmsQmgrPort">1414</PARAMETER>
<PARAMETER name="jmsClient">true</PARAMETER>
<PARAMETER name="jmsQmgrName">FTM.QMANAGER</PARAMETER>
<PARAMETER name="jmsSendQueue">FXH.SERVICESFRAMEWORK.INPUT.QUEUE</PARAMETER>
<PARAMETER name="jmsReplyQueue">FXH.TRANSSERVER.INPUT.QUEUE</PARAMETER>
</EVENT>