web stats
Mirth Community - View Single Post - Second destination depending on outcome on first else an error response
View Single Post
  #8  
Old 03-11-2010, 01:21 AM
pleo__ pleo__ is offline
OBX.1 Kenobi
 
Join Date: Sep 2009
Posts: 37
pleo__ is on a distinguished road
Default

Quote:
Originally Posted by nickydavid View Post
Thanks for the quick response. Just a couple of questions to clarify:
1. So in total I need 3 destinations. The last two will test the result of the first?
2. route method in javascript: Did you mean 'router.routeMessage(channelName, 'message');'. I thought this method only lets you route messages to channels and not destinations. Am I wrong?
The last question I had is about sending an error response, in another task I had used responseMap.put("ACKResponse", ResponseFactory.getSuccessResponse(finalResponse))
in a postscript to send back a response .. that was the only way to get it to work. So if you say that I have one destination for sending back the error, how exactly do I do it? I do not have the url/port number of where the hl7message comes in from to be able to send it back. I was looking for some sort of NACK sort of a thing.

Greatly appreciate your help.
Thanks a ton,
Nicky
someone can answer to the second question?
many thanks!
Reply With Quote