Hello,
I have a split and join step in a process, whith a file pickup in it. When the messages are merged in the parent process, I loose the FileName header of the jms message. I suppose that if I have the filename in part header instead of message header It will keep it, but I didn't find a way to set the message header as part header in the subprocess in javascript, and I think I can't do it in xsl, since the message content is binary. Does somebody have any idea on how to do this ?Thanks in advance,
Florian
PS : I'm using Sonic V7.6
Hello Florian,
try this!
function rule(){
prt = XQMessage.getPart(0);
prt.getHeader().setValue("Filename" , "edit.txt");
prt.setContentId("edo.txt");
XQMessage.removePart(0);
XQMessage.addPart(prt);
}
Regards
Chan Jeremy
ps : !oups did not see the date maybe a bit late...
Never too late... I had to do it again, and it worked, thanks !
If somebody needs it, here's my code :
function rule() {
prt = XQMessage.getPart(1);
attachHeaderProperty = prt.getHeader().getValue("ATTACH_HDR");
XQMessage.setStringHeader("ATTACH_HDR",attachHeaderProperty);
return null;
}
Regards,
Florian