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

Dynamic Configuration - Set Directory Path for File Receiver Adapter

Hi Experts,

I have a question regarding the dynamic configuration for the file adapter. Is it possible to set a directory path without a message mapping for the file receiver adapter? the problem is that I want to import a pdf document. this pdf document I want to store in a dynamic directory (depending on the filename). so I have to read the filename out of the dynamic configuration and generate (depending on the filename) a directory for this file. Is that possible without a message mapping? I cannot make a message mapping because the file has the pdf format and should not get changed.

best regards

Christopher Kühn

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2008 at 06:12 PM

    Hi

    Yes it is possible

    Use the ASMA for sender adapter. No need to any IR steps.

    At receiver configure Variable substitution

    Thanks

    Gaurav

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 10, 2008 at 06:14 PM

    File adapter supports Attachments. You might want to use a dummy file and take the pdf as attachment. In that case may be you can use dynamic configuration.

    Search the forum for Sudhir Porumamilla Blog on this topic.

    VJ

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Unfortunately with what you want to do... to set the path dynamically the values must be taken from somewhere...So the way I see it it:

      1: You must use the IR to create the necessary interfaces so that you can utilize variable substitution (taking values from the target payload) and just pick up the PDF as an attachment.

      2: Look into using an OS script after the file has been dropped off to move it to a dynamically determined folder...

  • Posted on Nov 11, 2008 at 04:00 PM

    You have to use adapter modules, where you can create dynamic configuration without changing the payload.

    See this blog: Dynamic configuration in adapter modules

    Regards

    Stefan

    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.