AS2 communication setup usually involve identification of messages using "Message Subjects". However, there are instances where one of the communication partner have requirement to receive some unique AS2 Filename or they want to send a unique AS2 filename besed on which processing sould be done in PI. The communication channel itself does not have any field to provide the AS2 file name. However, this information is present in the header of AS2 message and therefore using Dynamic Configuration, we can populate the AS2 Filename parameter before sending the message to partner or after receiving a message from them.
Seeburger provides an adapter module to populate the header data using Dynamic Configuration logic. The module name is AttribMapper. It is available with deployment of SeeModuleCollectionPI.sca. The module configuration looks as below:
Module Name: localejbs/Seeburger/AttribMapper
Module Type: Local Enterprise Bean
Do not forget to have Dynamic Configuration tick in the respective AS2 channel
AS2 Receiver Configuration
If the receiving partner requires AS2 Filename in the header, you may use the parameters as shown:
This setting will send "MyFileName" as AS2Filename in AS2 message header.
AS2 Sender Configuration
If the sender sends the AS2 filename in the AS2 message sent, you may access this AS2 filename for any purpose. e.g. In the below example, the module is used in the receiver File channel to create the receiver Filename with the same name as the AS2 Filename is sent from third party.
There are many parameters available with AttribMapper which could be exploited to achieve various funationality within Seeburger or PI adapters.