3 Replies Latest reply: May 9, 2013 10:43 PM by soa999 RSS

    Dynamic file naming for 820 outbound transaction

    soa999
      Hi All,

      We have a requirement to set the file name of outbound 820 based on few fields of xml payload from the backend BPEL process. We are currently implementing batching by sending the action name in (jca.jms.JMSProperty.ACTION_NAME) property.We are using SFTP and B2b 11.1.1.6. I've referenced the following http://www.oracle.com/technetwork/middleware/b2b-integrations/learnmore/tnb2b11g002-326857.pdf
      . Please share your thoughts.

      Thanks in advance!!
        • 1. Re: Dynamic file naming for 820 outbound transaction
          1004227
          File name can not be sent from back end in your case since you are using action to send batching information.

          One possible option would be:
          1. Use the Xpath expression in the B2B console to extract and hold the information on B2B xpath variable or use CUSTOM_HEADER to send this file name info to B2B
          2. Create a transaction java call out and use InstanceMessageUtil to extract the information from Xpath variable or from CUSTOM_HEADER and populate the file name

          Kathar
          • 2. Re: Dynamic file naming for 820 outbound transaction
            Anuj Dwivedi--Oracle
            For batching scenario's filename passed from back-end is not considered. For batching scenarios, you have to provide the "Filename Format" in your partner channel configuration and at runtime B2B will automatically generate the filename accordingly. If you are working with AS2 then you may find "Filename Format" setting under "Exchange Protocol Parameters" of your AS2 channel (starting from 11.1.1.6.0). Filename format can be specifid using any one or all of below parameters -

            %FROM_PARTY%
            %TO_PARTY%
            %DOCTYPE_NAME%
            %DOCTYPE_REVISION%
            %MSG_ID%
            %TIMESTAMP%
            %MSG_TYPE%
            %INREPLYTO_MSG_ID%

            If you are working with 11.1.1.5.0 or lower versions of 11g then please raise a SR with Oracle Support to get an appropriate patch for providing filename format in AS2 channel configuration.

            For FILE/FTP/SFTP protocols, filename format setting is available in all 11g versions.

            Regards,
            Anuj
            • 3. Re: Dynamic file naming for 820 outbound transaction
              soa999
              Thank you very much Kathar and Anuj for quick reply.