Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Hi,

$
0
0

Can any one suggest me the DYNAMIC Configuration for file name....

My Requirement is i need to pick the file dymanically from source,

for Ex:suppose from my sender i'm getting file name 1234_2345.txt but in receiver i need to be 1234 only,

          suppose from my sender i'm getting file name 1256_2398.txt but in receiver i need to be 1256 only,

like that i need to get the first part of my source file name only.

 

Please can any one give me the exact dynamic configuration program.

 

 

 

I wrote this following code,but it is writing the full file name..like1234_2345.txt like that.

 

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");

String Outputfile = conf.put(key,a);

return Outputfile;

 

 

Thanks,

Prasad.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>