UDF per ottenere il nome del file del communication channel file tramite la ASMA, Adapter-Specific Message Attribute, “http://sap.com/xi/XI/System/File” “FileName” delle Dynamic Configuration.
1 2 3 4 5 6 7 8 9 10 11 |
public String getDynConfFilename(Container container) throws StreamTransformationException{ /* Ritorna la chiave "http://sap.com/xi/XI/System/File" "FileName" delle Dynamic Configuration. */ DynamicConfiguration dc = (DynamicConfiguration) container .getTransformationParameters().get( StreamTransformationConstants.DYNAMIC_CONFIGURATION); DynamicConfigurationKey k1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName"); return dc.get(k1); } |