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.
Does anyone know how to do this inside in a java mapping?