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

Dinamic content conversion in Java Mapping

34 Views

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("http://sap.com/xi/XI/System/File","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.

getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

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

Thanks.