Skip to Content
author's profile photo Former Member
Former Member

Dynamic File Name

Hi All,

I have a scenario in that the sender Proxy sends a file name to BPM then BPM sends same file name to a Http application (Http adapter) by using a dynamic url.Then that Http application sends a file (around 2mb) as response to the BPM.Then BPM needs to send the same file to a file receiver channel. The file should be saved with the same file name at the receiver (file system).

Here my problem is,am able to get files from http but not able give the dynamic file name to the receiver . I went through lot of blogs for dynamic file generation,but this can be possible when ever the message mapping is performed between the source and target messages.Here the response message (file) from http is absrtact synchronous and my receiver is abstarct asynchronous,so I can't do interface mapping between them.Even the received file contents doesn't contain the file name inside. Please let me know how to assign the dynamic file name to the receiver(file system).



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 05, 2007 at 05:20 AM


    The dynamic filename generation concept is as follows.

    In your filename field. just give a variable with % symbols. (eg: %file% ).

    Now, under the option Variable Name Substitution, you can give how the value has to be created.

    It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.

    For the former, your give

    message:interface_name ,etc

    and for the payload part you give,

    Payload: "your element root which u wanna acecss"

    Just check this link out,

    And read the contents under variable substitution and it will help you understand the concepts better.

    U want to create same file name for sender and receiver:


    Dynamic file name for Receiver :



    Solution to the problem encountered using Variable Substitution with XI-SP12



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 05:26 AM

    HTTP application send you the file.

    You are using a HTTP sender adapter. correct?

    If so, you should be looking at using the URL parameters in HTTP sender channel.

    In the sender communication channel selectt Adapter Specific Message Attributes. Click on Apply URL Parameters. In Parameter1 put file-name. U can query any URL parameter by giving its name as in the HTTP URL..

    Check if you can see this value under dynamic configuration in SXMB_MONI. If you get it, then you can use dynamic configuration with keyName UrlParamOne in mapping to retrieve its value and assign to the target file name.

    Jai Shankar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.