cancel
Showing results for 
Search instead for 
Did you mean: 

How to access module parameters?

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Answers (0)