title: How do I Process Response Objects in the Response Transformer for custom Acknowledgment in Mirth 3.0?
body: <p>I'm using Mirth 3.0.1.7051.</p>
  
  <p>I currently have a 2 working channels on Mirth 2.2.2.6388.</p>
  
  <p>Channel 1) TEST_ADT_HL7_To_XML
  Channel 2) TEST_XML_Sender</p>
  
  <p>Channel 1 - Receives an HL7 message, converts it to a custom XML and send it to Channel 2.
  Channel 2 - Receives an XML send to a HTTP listener.
  This works with an XML Response acknowledgement from the HTTP listener.
  The response is in an XML format.</p>
  
  <pre><code>&lt;ADTAck&gt;
      &lt;Status&gt;ERROR&lt;/Status&gt;
      &lt;Message&gt;Payload does not contain a value&lt;/Message&gt;
  &lt;/ADTAck&gt;
  </code></pre>
  
  <p>I am able to process it all the way to the sending application. Until I turn On "Persistent queues". Once this is ON, the response will always be queued from the destination as expected. Using the Send response to doesn't work as the response is in XML format.</p>
  
  <p>I have moved these channels to Mirth 3.0 to make use on the Response Transformer.</p>
  
  <p>In the Response Transformer I have the following code:</p>
  
  <pre><code>var ResponseMessage = response.getMessage();
  logger.info("ResponseMessage: "+ ResponseMessage.toString());
  var ResponseXML = new XML(ResponseMessage.toString());
  logger.info("Response XML=" + ResponseXML.toString());   
  responseMap.put('ACK', ResponseFactory.getSentResponse(ResponseXML));
  </code></pre>
  
  <p>In the Source connector, Under "Response Settings->Response", I selected "ACK"</p>
  
  <p>I am able to see the message content of response object in the logs. But the response does not make it to channel 1 (TEST_ADT_HL7_To_XML).</p>
  
  <p>When I apply:</p>
  
  <pre><code>return "My Message response";
  </code></pre>
  
  <p>in the "Post processor script", I get a response. But I'm unable to access the response object("ACK") that the "Response Transformer" created.</p>
  
  <p>I've read every 'response' thread on this forum. Tried Mirth version 2.x and now version 3. But I'm not getting any closer to a solution.</p>
  
  <p>How can I process the Response Object correctly so that Channel 1 receives the XML response?</p>
  
  <p>Many Thanks in Advance for your help.</p>