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:
- A Type20Record object is built
- The modifyRecord() method is called for the Type20Record
- The Type20Record is written to disk when modifyRecord() returns
- The engine loops building item (type 25, 26, 27, 28, 50, 52, 54) records, and all addenda and image addenda records
- Once all the records for an item (type 25, 26, 27, 28, 50, 52,
54) have been built, the engine calls the following methods:
- setOriginalItem()
- setImageAddenda()
- setItemAddenda()
- The modifyRecord() method is called for the ICLItemRecord
- The item record and all its addenda records are written to disk when modifyRecord() returns