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

Variable Substitution

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on May 20, 2008 at 10:14 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 20, 2008 at 10:15 AM

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

    regards

    chandra

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo Former Member
    Former Member
    Posted on May 20, 2008 at 10:44 AM

    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

    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.