Skip to Content
avatar image
Former Member

Filename based on a payload-field condition?

Hi there,

I'm wondering if it's possible to condition the fieldname based on a payload "flag", like a simple "if flag = 1 then filename it's 'flat.txt', else filename it's 'nested.txt'." where flag is part of the payload and can be mapped to the target message...

I was looking for some adapter-specific attributes but it seems that this only applies for the SOAP message, not over the payload.

So i was thinking about java stack, like using global containers or something but i don't know how to access them using the ASMA bean or something like that, but i don't have any documentation how to do it, so if you can advise which will be the best way to achieve that, it will be great...

Points rewarded if useful...

Thanks folks.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Oct 09, 2007 at 03:03 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 09, 2007 at 05:01 AM

    You can do it by using adapter specific attributes as mentioned in blog

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

    You can write a UDF as mentioned by this blog, passing the flag to this UDF

    Inside UDF you can check flag value and accordingly set the filename in dynamic configuration

    Add comment
    10|10000 characters needed characters exceeded