cancel
Showing results for 
Search instead for 
Did you mean: 

Take a XML file for a dynamic folder.

Former Member
0 Kudos

Hi Experts,

I have a problem with an interface of XI, I have to acces to a dynamic folder with my sender of XI channel, i mean i need to take a XML file of a folder, but this folder change every day( always take the actual day - 1).

Any idea?

thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

If you are expecting a file in the dynamic folder that changes name, use wildchar for the folder name in the sender file communication channel. Just a thought...

Example:
    Today - /test1/gen1.xml  
    Tomorrow - /test2/gen1.xml
  folder or directory name as /test*/gen1.xml

Edited by: Baskar Gopal on Jun 29, 2011 5:42 PM

Former Member
0 Kudos

Hi,

Not sure if the sender file adapter allows a dynamic folder name. You can specify multiple folder names but the folders themselves have to be static.

One way can be to use a preprocessing script. Keep a dummy file in a static folder to trigger the script. The script would search in the required folder and copy the fil einto the static folder for the PI adapter to pick up.

Another option can be a custom adapter module. You would again need a dummy file to trigger the message flow. From the adapter module, use Java ftp functions to retrive the file and pass onto the IE as the output from the module.

All these designs though would be prone to failure.

Simplest way would be to convince the sender to use a static folder.

Regards