In this post I am going to explain how to give specific name
for mec outbound file. According to the Mec Development if you are not provide
the output file name I will give default file name.
Refer the above mapping to continue the practice. Here I
have used two XSD to do the mapping .I have used the two function inside the
mapping Calculate_Func and RenameFile_func function. I am skiiping the
Calculate_Func code here not relevant here.
To give specific name for the file we have to write a method
. double click RenameFile_func and write
below code.
private void renameFile_func()
throws Throwable {
// Please
implement me
String
filename="MecFileName"+gid;
setManifestInfo("map:filename", filename);
}
I set my output filename as MecFileName with id here.
Step 2
Go to partner administrator->communication-> send->”select
your output file set in the partner administrator”->Edit
Fill according to the below image
Now run and see you will get the output file name as given
above.
Comments
Post a Comment