Method-Calling Sequence during Bundle Creation

The Distribution engine calls the methods in the user exit in a defined sequence. When a request to bundle a segment is received, the user exit is instantiated and the Distribution engine calls the following methods to give the user access to all the information that is used to build the records:
  • setBank()
  • setBuildingOpts()
  • setEndpoint()
  • setPartner()
  • setFileDef()
  • setChannelDef()
  • setOutboundSegment()
  • setOutboundPres()
  • setOutboundPresGrp()
The calling sequence for building a bundle is as follows:
  1. A Type20Record object is built
  2. The modifyRecord() method is called for the Type20Record
  3. The Type20Record is written to disk when modifyRecord() returns
  4. The engine loops building item (type 25, 26, 27, 28, 50, 52, 54) records, and all addenda and image addenda records
  5. Once all the records for an item (type 25, 26, 27, 28, 50, 52, 54) have been built, the engine calls the following methods:
    1. setOriginalItem()
    2. setImageAddenda()
    3. setItemAddenda()
  6. The modifyRecord() method is called for the ICLItemRecord
  7. The item record and all its addenda records are written to disk when modifyRecord() returns
This process is repeated for each payment in the bundle. Once all payments have been processed, the Type70Record is built and sent to modifyRecord().