on 11-10-2014 3:11 PM
Hi SDNites,
I have done all the relevant configurations for dynamic File name,
1. Set the ASMA File attribute on both sender and receiver side.
Also to modify the input file name and send it to receiver, I have used the dynamic configuration and mapped it to the top node (Mapped to Receiver Message type).
Dynamic Configuration code,
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
ourSourceFileName = "ABC";
return ourSourceFileName;
I would like to see my receiver file name as ABC. But the same is not obtained.
Regards,
Abhi
Hello,
U have to set file name using below code -
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
conf.put(key,"ABC");
ourSourceFileName = "ABC";
return ourSourceFileName;
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek,
You want to use the put method to insert a key. Here is a snippet of the code:
conf.put(key, "ABC");
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.