A clever way to transfer bulk data via PeopleSoft Integration Broker with Segmented Messages
Introduction:
We all know that the data transfer between systems is present since the day we invent Internet of Things, and we invented many mediums and methodologies to do that. So as PeopleSoft IB for integrating another PeopleSoft Application or 3rd Party application either to send or receive or for both. And I would say that we haven't explored all the possible ways of data transfer or integration between two systems especially on PeopleSoft IB. Recently I had a chance to go through a situation where the data (I mean a huge volume of data like files and media) needs to send and receive between third-party application and PeopleSoft application and without loosing the track of which one to process and in which order. In the search of the answer when weighing the PeopleBook I came across two broadly used ways 1. Message Segmentation 2. Binary Data transfer. In this blog we will deep dive into the first approach.
Fundamentals:
The approach here is to split the message into multiple segments and send/receive and track at the opposite site using transaction ID. Following things you have to ensure before writing any code to send or receive the message and processing the same at either end.
- Your PeopleSoft application needs to be configured as Segment Aware at the NODE level (where it integrates with third-party).
- Setting up the maximum no. of segments that the application can or should handle.
- Creating and managing the message segments. like splitting the payload as multiple junks. Either by content length or by it's grouping. (like you can send Invoice details in 1st segment and in the 2nd segment you can attach the scanned copy and in 3rd segment Invoice summary)
- Carefully handling the segment number when sending and receiving messages
- Deciding where to store segmented messages until you receive all the segments. You can either choose either Memory or Application Table (your admin can help here)
- Choose whether your segments are send or received in Ordered or Unordered
- Understanding API header parameters which will tell the PeopleSoft application which segment been sent and how much is remaining.
How it's done (Step by Step)
Node Configuration:
Setup maximum no. of segments to handle:
When you combine the messages on your code the final message looks like below,
Handling Segment Number in Sending or Receiving message:
- DataChunkCount: Indicates the total number of data chunks or message segments contained in the transaction.
- DataChunk: Indicates the number of the data chunk or message segment that you are sending.
Comments
Post a Comment