web stats
Rotate Queue - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2017, 11:15 AM
sid1 sid1 is offline
OBX.1 Kenobi
 
Join Date: Jun 2017
Posts: 38
sid1 is on a distinguished road
Question Rotate Queue

We have the setting under "Advanced Queue Settings"\"Rotate Queue" selected.

but I noticed the behavior is that it rotates msgs in the queue on TCP errors and no connectivity errors.

Is there anyway to stop this behavior ?
I only want the queue to rotate on Mal-Formed msgs or msgs that are NAK'ed.

Thanks
Reply With Quote
  #2  
Old 06-15-2017, 11:53 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,124
narupley is on a distinguished road
Default

You can override that in the response transformer. Set the "responseStatus" variable to ERROR to force-error a message out, or SENT to force a message to the SENT status. Then it will not re-queue. Look in the Reference tab (category Response Transformer) for more info.
__________________
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
  #3  
Old 07-24-2017, 08:22 AM
sid1 sid1 is offline
OBX.1 Kenobi
 
Join Date: Jun 2017
Posts: 38
sid1 is on a distinguished road
Default

Is "response transformer" = "Edit Response", don't see the exact former.

Can I get a couple example lines ?

Thank you.
Reply With Quote
  #4  
Old 07-25-2017, 06:31 AM
AlexNeiva AlexNeiva is offline
Mirth Guru
 
Join Date: Oct 2013
Location: Portugal
Posts: 277
AlexNeiva is on a distinguished road
Default

Hello,

just type:

responseStatus=ERROR; or responseStatus=SENT;

in the Response Transformer -> Javascript type

Best Regards
Reply With Quote
  #5  
Old 07-26-2017, 02:08 PM
sid1 sid1 is offline
OBX.1 Kenobi
 
Join Date: Jun 2017
Posts: 38
sid1 is on a distinguished road
Default

is there any list of all the "responseStatus" values ?
Reply With Quote
  #6  
Old 07-26-2017, 02:16 PM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,124
narupley is on a distinguished road
Default

Quote:
Originally Posted by sid1 View Post
is there any list of all the "responseStatus" values ?
Yes, that information is in the User Guide. You can set the response status to SENT, QUEUED, or ERROR.
__________________
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
Reply

Tags
mirth connect

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 04:47 PM.


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