web stats
Edit response: for which destination connectors does it works? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-28-2016, 11:17 PM
ppazos ppazos is offline
OBX.2 Kenobi
 
Join Date: May 2008
Posts: 77
ppazos
Default Edit response: for which destination connectors does it works?

Hi, I'm doing a very simple test to figure out the order of execution of global scripts, channel scripts, filters and transformers, by just adding a logger.info to each one of those.

My channel is very simple: MLLP Source / File Writer Destination (all HL& v2.x).

On the FileWriter Destination I added a logger.info also to the Edit Response as a JavaScript Step. But it is never executed, this is my output when I send a message:

INFO 2016-07-29 03:03:39,527 [Undeploy JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0) < pool-7-thread-92] undeploy: Channel Undeploy
INFO 2016-07-29 03:03:39,547 [Global Undeploy JavaScript Task < pool-7-thread-93] undeploy: Global Undeploy
INFO 2016-07-29 03:03:39,547 [Global Deploy JavaScript Task < pool-7-thread-92] deploy: Global Deploy
INFO 2016-07-29 03:03:39,577 [Deploy JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0) < pool-7-thread-93] deploy: Channel Deploy
INFO 2016-07-29 03:04:08,158 [Preprocessor JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0) < pool-7-thread-93] preprocessor: Global Preprocessor
INFO 2016-07-29 03:04:08,158 [Preprocessor JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0) < pool-7-thread-93] preprocessor: Channel Preprocessor
INFO 2016-07-29 03:04:08,158 [Source Filter/Transformer JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0) < pool-7-thread-92] filter: Source Filter Step 1
INFO 2016-07-29 03:04:08,158 [Source Filter/Transformer JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0) < pool-7-thread-92] filter: Source Filter Step 2
INFO 2016-07-29 03:04:08,158 [Source Filter/Transformer JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0) < pool-7-thread-92] transformer: Source Transformer Step 1
INFO 2016-07-29 03:04:08,158 [Source Filter/Transformer JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0) < pool-7-thread-92] transformer: Source Transformer Step 2
INFO 2016-07-29 03:04:08,178 [Destination Filter/Transformer JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0), Destination 1 (1) < pool-7-thread-92] filter: Destination 1 Filter
INFO 2016-07-29 03:04:08,178 [Destination Filter/Transformer JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0), Destination 1 (1) < pool-7-thread-92] transformer: Destination 1 Transformer
INFO 2016-07-29 03:04:08,198 [Postprocessor JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0) < pool-7-thread-92] postprocessor: Channel Postprocessor
INFO 2016-07-29 03:04:08,198 [Postprocessor JavaScript Task on 0001_logger (ddd4fb6b-0232-4af2-b32d-9022674322a0) < pool-7-thread-92] postprocessor: Global Postprocessor


I was expecting "Destination 1 Response" after "Destination 1 Transformer" but there is nothing on the logs.

My question is: does the Response Transformer execute for certain types of destination connectors or should be executed for any type of dest connector?

In my case, the Response Transformer doesn't get executed for File Writer dest. Maybe a bug?

Thanks!
Reply With Quote
  #2  
Old 08-02-2016, 08:52 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

Search the forums first please... The response transformer does not execute if there is no response to transform. If you want to always execute it regardless of whether there is a response, you can set your response data types to Raw.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.

Last edited by narupley; 08-02-2016 at 09:44 AM.
Reply With Quote
Reply

Tags
file writer, response

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:53 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation