cancel
Showing results for 
Search instead for 
Did you mean: 

Variable Substitution

Former Member
0 Kudos

Hi ,

I have a scenario where I am downloading the reasposne file to a local file through a receiver file adapter.

Here I need to populate the foldername based on sender_service.

1.When I use the folder name statically it is working.

like --->

Target Directory: /XI/IP_COMPASS/RESPONSE

My resulting structure look like this...

<?xml version="1.0" encoding="utf-8" ?>

- <nr1:FIDOC_XI_MSG xmlns:nr1="urn:xi:liberty:fi:interface">

<PROCESSID>0001</PROCESSID>

<SENDER_SERVICE>IP_COMPASS</SENDER_SERVICE>

- <MESSAGES>

- <ITEM>

<MSGTYP>E</MSGTYP>

<MESSTXT>Account invalid 71143 S LLAL</MESSTXT>

</ITEM>

</MESSAGES>

</nr1:FIDOC_XI_MSG>

2.For the above structure I wanted use the variable subtitution like this

Target Directory: /XI/%folder%/RESPONSE

folder....> payload:FIDOC_XI_MSG,1,SENDER_SERVICE,1

or

folder....> message:sender_service

I tried both the options but no file i sdownloaded.

How can I verify what is going wrong with this?

Thanks in advance...

Edited by: raju sdn on May 20, 2008 12:12 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Follow this links it really help to you

/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi

/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12

Former Member
0 Kudos

hi have entered %folder%.xml as the filename in the filename Scheme field.

regards

chandra

Former Member
0 Kudos

Dear Chandra,

I want only the directory to be populated dynamically,and my file name is a static one.

It doesn't change at the moment.

Thanks...

GabrielSagaya
Active Contributor
0 Kudos

Hi,,

Your message:sender_service will return only SID of that

please check it (X20, X30) etc.

under variable substitution

*****************************

var1=message:sender_service

File access parameter

**************************

target dir=/XI/%var1%/RESPONSE/

hence your target dir would be

/xi/x30/RESPONSE/

/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi

aashish_sinha
Active Contributor
0 Kudos

Hi,

Have a look into this blog.

It will help you with what you want exactly.

/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi

Regards

Aashish Sinha

PS : reward points if helpful