How to see "Processed Raw" in the source next to "Raw" #6336
-
In the channel source I get a message like this: ""fake message example"" In the preprocessor I have this code: `var message_xml = new XML(message); return message;` The script as final output returns the decoded base64 message which contains a hl7 XML message. At this point, if I set the inbound of the XML type source there are no errors, but I don't see the "Processed Raw" tab appear. Furthermore, when the source fails, I also see a third tab, that of the "transformer" in addition to "raw" and "Processed Raw", with a completely wrong value, that is, the opening and closing tags of the xml are messed up. What I would like is to see the "Processed Raw" in the source and that it doesn't fail obviously, so that I can work with the destinations later. I attach some images that may be helpful |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Moving your post to the Q and A section. Please also use code formatting: var message_xml = new XML(message);
message = new java.lang.String(FileUtil.decode(message_xml.*::['Body']['MSG_HL7'].toString())).toString();
return message; |
Beta Was this translation helpful? Give feedback.
-
@Graziano-Calella I am not exactly sure what you are asking here. Is this actually a web service listener that receives an HL7 message (in XML itself) that is base64 encoded? |
Beta Was this translation helpful? Give feedback.
It only activates that radio button if the preprocessor runs (i.e. has something other than return message in the script)