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

using a variable in communication channel

Hi,

I have a lot of Communication Channels looking for files in the same directory. This directory's path will be changed soon and so I assume I'll have to change all my Communication Channels.

I was wondering whether there was a means of using a variable for the Source Directory in order to just have to change its value where it is defined and not every where it is used...

Regards

Yann

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 17, 2006 at 08:33 AM

    Hi,

    Is this a sender file adapter? or a receiver file adapter?

    You can make a change / make the receiver file adapter's directory dynamic by setting the value during runtime in the mapping.

    Use this blog and the code in the blog to acheive this,

    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

    Sender File adapter, I dont think this is possible.

    Regards,

    Bhavesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Bhavesh Kantilal

      You create a link (with the ln command) that appears as a directory in the fileSystem. When you make actions on it, these actions are actually redirected to the true directory the link points to.

      So when you want to change the directory name or path, you just have to make the change in the link aim, not to all the stuff that use the link.

      The only drawback I see is that it means configuration outside XI.

  • Posted on Oct 17, 2006 at 09:43 AM

    In a Windows system I have already tested with system variables. That works well. But you have to change the environment variables in the server directly.

    For Unix you should test if system variables can be used as well.

    Regards

    Stefan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 01:09 PM

    Hi,

    In the sender file comm chan config, under the "File Access Parameters" section, there is an option "Advanced Selection for Source File". By selecting this option, you can enter additional source file directory/names.

    Enter your new directory and file in this section. The original directory you had will be ignored if it does not exist.

    Regards,

    Bill

    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.