Using Route SWIFT MT and Parse SWIFT MT Activities
The BW-activity-MT102-MT103-routing-and-parsing project contains the Route-and-Parse process, which shows how to use the Route SWIFT MT and the Parse SWIFT MT activities to route and parse MT messages.
Route-and-Parse Process
This process uses a file that contains a multi-message MT string as the input, splits it into individual messages, and then routes them to appropriate activities. The MT102 and MT103 messages are parsed while other messages are simply logged.
The following figure describes the Route-and-Parse process:
The Route-and-Parse process performs the following operations:
- The Timer activity triggers the process when you run it.
- The Read_Incoming_MTs activity reads the $Root/IN/10x-messages.fin file, and then passes the multi-message MT string to the SWIFT-Router activity.
- The SWIFT-Router activity splits the multi-message MT string into individual messages, and then passes each message to the dump-MT-msg-to-disk activity in the MT-Processing group.
- For each message in the file, the following activities take place in the MT-Processing group:
- The dump-MT-msg-to-disk activity writes the message to the /OUT/received-mt#-timestamp.fin file in the $Root directory.
- The dump-MT-msg-to-disk activity sends the message to the Parse activities according to the message type. An MT 102 message is sent to the Parse-MT 102 activity, an MT 103 message is sent to the Parse-MT103 activity, and any other message is sent to the Log-and-move-on activity.
- The Parse-MT102 and the Parse-MT103 activities parse the incoming MT 102 and MT 103 messages to a structured format.
- The Process-MT102 and the Process-MT103 activities write the structured message to the $Root directory as /OUT/processed-mt#-timestamp.txt. This structured message can be easily manipulated, merged, mapped, and so on, by using any other TIBCO ActiveMatrix BusinessWorks™ activities.
- The Log-and-move-on activity logs any message that is not of the MT102 or MT103 type.
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved.