Düzenle

Aracılığıyla paylaş


FRR Processing

The A4SWIFT FIN Response Reconciliation (FRR) feature correlates FIN messages from the SWIFT Alliance Access (SAA) with the original message from A4SWIFT that the SAA message responds to. Whenever A4SWIFT sends an original message, FRR caches a copy of any message that is bound for SWIFT and that has not failed processing. It then monitors the MessageBox for response messages returned by SAA to A4SWIFT, and picks up any ACK/NAK messages that corresponds to the cached message copy.

FRR establishes a correlation between an outgoing message and an incoming message by comparing correlation ID properties. FRR sets promoted properties of the copy of the original message according to the nature of the response, and then routes the original message to the MessageBox for further processing.

FRR Components

FRR includes an ongoing process (orchestration) that monitors outgoing and incoming messages, and for each outgoing or incoming message, promotes the identification properties that it will use for comparison. A series of A4SWIFT components work together with the FRR orchestration, routing messages between the FRR components within A4SWIFT, and between A4SWIFT and SAA. These components are listed below:

  • An FRR receive location that receives the original message from the back-end application.

  • The FRR orchestration that monitors outgoing and incoming messages, and establishes the correlation between them.

  • An FRR send port that sends the original message from BizTalk Server to SAA.

  • The BizTalk Adapter for MQSeries that enables data transmission between BizTalk Server and SAA (which uses MQSeries queues).

  • An FRR receive location that receives FIN response messages from SAA.

  • A set of FRR send ports, each of which sends correlated messages of a specific type from A4SWIFT to a back-end application for custom processing.

    To the above components, you can add a back-end custom handler that processes the original message the promoted properties of which have been set by FRR.

FRR Process Flow

A4SWIFT performs the reconciliation in the following process:

  1. The back-end application routes the original message to A4SWIFT.

  2. An FRR receive location receives the message, processes it in the associated receive pipeline, and routes it to the BizTalk MessageBox.

    Note

    You can use FRR in conjunction with the A4SWIFT Message Repair and New Submission feature, or separately. If you have installed Message Repair and New Submission, you can configure the system for message repair after step 2. The message-repair orchestration routes the repaired/verified/approved message back to the BizTalk MessageBox for subsequent FRR processing.

  3. If the message in the MessageBox is bound for SWIFT and has passed validation, A4SWIFT activates an instance of the FRR orchestration. The orchestration keeps a copy of the outgoing message. It then waits in an activated state for a response from SAA, so it can match the outgoing message to any incoming response. This instance of the orchestration only processes that specific outgoing message and any correlated responses to that message. Any other message, even of the same type, is processed by another instance of the orchestration.

  4. At the same time that A4SWIFT activates the FRR orchestration instance, A4SWIFT routes the message to the send port that sends messages to SAA. The send pipeline promotes a message-identification property and properties required for processing by MQSeries. It then sends the message to the BizTalk Adapter for MQSeries.

  5. The BizTalk Adapter for MQSeries transports the message to the appropriate MQSeries queue at SAA.

  6. SAA generates an immediate response for routing directly back to A4SWIFT. SAA then routes the message to the SWIFT Network. The SWIFT Network generates other responses, which it sends to SAA for routing back to A4SWIFT. SAA sets the correlation token property for the FIN response message to the message-identification value of the original message.

  7. SAA transports the FIN response through the BizTalk Adapter for MQSeries back to A4SWIFT.

  8. The FRR receive location receives the response and routes the message through the FRR receive pipeline that processes the response's correlation token. It then places the response in the BizTalk MessageBox.

  9. The FRR orchestration instance picks up any message from the MessageBox that has a correlation token equal to the message ID property of the copy of the original message.

  10. If the response indicates that the original message was successfully processed by SAA/SWIFT, the FRR orchestration instance sets the A4SWIFT_Failed promoted property of the copy of the original message to False, and sets the BTS.Operation property to the appropriate value.

  11. If the original message was not successfully processed by SAA/SWIFT, the FRR orchestration instance sets the BTS.Operation property to the appropriate value, and then designates the message for repair by setting A4SWIFT_Failed to True and setting the A4SWIFT_FRRFailedReason promoted property to the reason for the failure.

  12. The FRR orchestration instance discards the response message(s), and then routes the copy of the original message (with promoted properties indicating the response) to the MessageBox.

  13. One of the FRR send ports set up to route the responses to one or more custom handlers picks up the copy of the original message with the promoted properties.

  14. The custom handler or handlers subscribes to, retrieves, and processes the copy of the original message as required for the back-end application.