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

How to access module parameters?

Hi,

I'm developing own module for XI File Adapter.

I found in the weblogs how to get source file name. Thanks.

But how do I get custom parameter specified for the module?

Where could I check all readable parameters, apart from source file name? For instance source dir?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2005 at 04:24 PM

    Hi

    The parameter "moduleContext" in the process (moduleContext,inputModuleData) method has a method getContextData(String name)....

    This can be used to read the module configuration parameters.

    For the filename, i believe you are doing the following:-

    using the getSupplementalData(String param) of inputModuleData with the value for param being 'module.parameters' to get a hashtable and out of the hash table you are reading an entry for "FileName"

    So let me suggest you a wild try...Did you try checking for "SourceDirectory" in the hashtable?

    You could also get all the keys/values in this hashtable and put it somewhere in the xml and see what all parameters are there in message monitoring(This is just a suggestion for a simple debugging...).

    Thanks & Regards,

    Renjith

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for the answer. Solved the problem with custom param.

      Before writing the question I've read all the keys through the enumeration. There are only two keys FileName and FileCompleted.

      Thank You again.

      Evgeny.

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.