The Delivery Manager transfers the business document from the inbound queue to the appropriate gateway folder. DeliveryWorker polls this folder, finds and picks up the business document and calls the processSend method on the Sender Framework.
The Framework executes any gateway configured pre-process handlers.
The Framework creates a sender object from a class which implements SenderInterface. This class may be user supplied. The Framework calls the send method on that sender object. The document is sent. The send method also checks if the GET_SYNC_RESPONSE constant on the business document is set to 'true'. If it is, the sender then reads the synchronous response from the connection and uses the data to populate the SenderResult object the method returns. The Framework executes any gateway configured post-process handlers.
The Framework reads the SenderResult object, creates a UUID for the response, and creates the set of input files for the BPE. Included in the metadata file are two constants: BCG_RESPONSE_STATUS, which carries the response transport status code, and BCG_SYNC_RESP, which is set to 'true'. The files are written into the BPE's sync_in directory.