Skip to Content
Apr 13, 2012 at 08:05 AM

Dinamic content conversion in Java Mapping


Hi all,

I need to set the name of the file I generate in my integration scenario dinamically. I am using a Java mapping.

I have search in forum and I have seent that in graphical mapping I can use a UDF like:

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); DynamicConfigurationKey key = DynamicConfigurationKey.create("","FileName"); String SourceFileName = "nameoffile.txt"; String TargetFileName = SourceFileName; conf.put(key, TargetFileName);

I have tried this in my java mapping but I get a compilation error on container.


Does anyone know how to do this inside in a java mapping?