web stats
No responseMap variable in Source tab - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-03-2018, 10:56 AM
ashishshetty1992 ashishshetty1992 is offline
Mirth Newb
 
Join Date: Jan 2018
Location: Boston
Posts: 17
ashishshetty1992 is on a distinguished road
Default No responseMap variable in Source tab

Hi,

I have a channel with a responseMap variable set in the Postprocessor script. However, I can't find that variable in the Response drop-down in the Source tab. If I use the Postprocessor option from the drop-down, it doesn't send my custom response to the sender.

I tried to search the entire forum for this, but couldn't find anything. Appreciate any help on this.

Mirth version: 3.5.0.8232

Thanks,
Ashish
Attached Images
File Type: jpg postprocessor.jpg (14.6 KB, 22 views)
File Type: jpg source.jpg (79.1 KB, 12 views)
Reply With Quote
  #2  
Old 05-03-2018, 08:24 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,175
agermano is on a distinguished road
Default

Your Postprocessor should just be
Code:
return 'OK';
Then it will work if you select Postprocessor in the drop down.
Reply With Quote
  #3  
Old 05-04-2018, 05:10 AM
ashishshetty1992 ashishshetty1992 is offline
Mirth Newb
 
Join Date: Jan 2018
Location: Boston
Posts: 17
ashishshetty1992 is on a distinguished road
Default

Hi agermano,

Thanks! I know that works, but I want my custom variable to appear in the drop-down. I've read elsewhere that this should be possible, but not sure why it isn't working in this case.
Reply With Quote
  #4  
Old 05-07-2018, 06:23 AM
ashishshetty1992 ashishshetty1992 is offline
Mirth Newb
 
Join Date: Jan 2018
Location: Boston
Posts: 17
ashishshetty1992 is on a distinguished road
Default

Hoping Nick sees this and replies.
Reply With Quote
  #5  
Old 05-07-2018, 10:12 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,175
agermano is on a distinguished road
Default

Just a guess, but I think the responseMap is tied to the destinations, which there is no context for in the postprocessor. Also, the postprocessor doesn't need to set a responseMap value, since it is one itself. Why can't you just return $('yourVariable') from the postprocessor?
Reply With Quote
  #6  
Old 05-08-2018, 06:38 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

Created an issue for this: MIRTH-4267

In the meantime, you can add your responseMap.put somewhere else like a transformer step. You can put it inside of a comment even, and it should still get parsed and added to the response drop-down menu.
__________________
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.
Reply With Quote
  #7  
Old 05-14-2018, 06:30 AM
ashishshetty1992 ashishshetty1992 is offline
Mirth Newb
 
Join Date: Jan 2018
Location: Boston
Posts: 17
ashishshetty1992 is on a distinguished road
Default

Quote:
Originally Posted by agermano View Post
Just a guess, but I think the responseMap is tied to the destinations, which there is no context for in the postprocessor. Also, the postprocessor doesn't need to set a responseMap value, since it is one itself. Why can't you just return $('yourVariable') from the postprocessor?
When I do that, I don't get the expected response back in my browser.
Reply With Quote
Reply

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 02:58 AM.


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