on 03-28-2008 7:36 AM
Hi All,
We are working on file to mail scenario. Client requirement is " Attached file name should be the message id" How can we achieve this.
Thanks & Regards,
Purshothamm
Hi,
To have the file name as message id, I think the below blogs can help you
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
Regards,
Vijay N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for xi message id u need to have it implemented using udf.
function myudf(String a,Container container)
{
java.util.Map map = container.getTransformationParameters();
String msgid = (String) map.get ( StreamTransformationConstants.MESSAGE_ID);
a=msgid+"_"a;
return a;
}
If a is filename, You can append message id to filename and pass it to the target element.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.