Skip to Content
Former Member
Aug 07, 2006 at 12:59 AM

User Define Function Question



I was looking at this Blog /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Please help me configuring the UDF in graphical mapping editor.

As I donot know Java, can someone help me develop UDF with the following code?

Code from the Blog is


DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("","FileName");

String ourSourceFileName = conf.get(key);

return ourSourceFileName;


My Question is

What is what is User Defined Function Name and arguments ?

What is the First line in the Function?

Is this correct ?

public String FileNameFunction(Container container){

Will someone explain me please?

All explanations will be rewarded with points..