Originally posted by Ryan Land
Originally posted by Duy Nguyen
Ryan Land wrote:I am trying to log all messages for a single thread.
Ryan Land wrote:
Originally posted by John Hamilton
John Hamilton wrote:No SMAT would not get those message on the outbound side. If you have a TCL proc that kills it which it appears you do. Then you should just be able to open a file in TCL and write it out from there. If not then I would need to better understand how you are killing the message to tell you how to log the message.
John Hamilton wrote:
Jim Kosloskey wrote:Duy,If you have SMAT on the inbound thread you have the message as received by Cloverleaf(R). However that would be ALL messages - those KILLed and CONTINUEd.Of course you could locate the messages KILLed by a number of mechanisms but maybe that is more than you want.If filtering at the Route Messages, you could set one route to KILL and th other route to use the same logic but do the complement. In other words CONTINUE the messages KILLED and KILL the messages CONTINUEd in the first route. The message for the second route could go to a File protocol thread. You could either have the File protocol send to /dev/null and use the outbound SMAT; go to a real file and use the actual file; go to a real file and use outbound SMAT.Or... you could do your own write to a file inside the filtering proc and assume all of the I/O responsibility yourself.What I do is to have the SMAT on the inbound and make sure I have coordinated testing with the inbound system to test all of the appropriate filtering scenarios. I then use the SMAT files and whatever my filtering proc echoed to the log (I have one filtering proc and it has a debug switch so I can control when logging occurs) to prove or disprove the efficacy of the filtering process.Once testing is done, if there is an issue regarding filtering I use the SMAT files with the documented and configured (my filter proc is argument driven so I can tell what is supposed to occur by looking at the arguments) filter knowledge determine whether the filtering is working correctly.The inbound SMAT is the real PROOF of what you received from the vendor..Jim Kosloskey
Jim Kosloskey wrote:
Jim Kosloskey wrote:Duy,That depends on your capabilities with Tcl.Defining a new thread and specifying the route to the new thread (and include the complement filtering) should only take about 10 minutes I would think. If you think you can modify your filtering proc in the same time frame than it is a wash - except - you cannot reuse your filtering proc unless you build in controls for when logging happens and when it does not - that might take longer.Let say, if I were to do this configuratiion, I would only set it up in test, I would not tend to migrate that to Production (after all if your filtering starts failing in Production, in my opinion, you did not test effectively).If you are asking me how I would do it, I would use the inbound SMAT file and find the message(s) which is/are suspect (either KILLed or CONTINUEd in error) and use those to confront the inbound system. After all since these are the messages exactly as received from the sending system, there can be no question about whether the message had been modified in any way by something you did and the onus lies squarely on the sending system.Jim Kosloskey
Originally posted by Michael Hertel
Actually, Jim, what I think we're trying to do is log the full HL7 message if it is killed. We want to be able to write this to a file, separate from the process log. We will be using this file to look at why the messages got killed so we can go back to the vendor and discuss. We don't want to log the HL7 message if it is succesfully passed through the engine (not killed). Would this still involve using SMAT or a different method?
Originally posted by Richard Hart
Originally posted by Chris Williams