Question regarding specific automatic reprocessing of messages based on destination response #4574
-
Is there a way I can reprocesses a message a specific amount of times for a specific error ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes there is. Check out post 9 from narupley on the old forum thread at https://forums.mirthproject.io/forum/mirth-connect/support/16942- That example shows how to write a response transformer to queue and retry a message. For your use case you would also want to inspect the content of Note that you will often have to set your response datatype to |
Beta Was this translation helpful? Give feedback.
Yes there is.
Check out post 9 from narupley on the old forum thread at https://forums.mirthproject.io/forum/mirth-connect/support/16942-
That example shows how to write a response transformer to queue and retry a message. For your use case you would also want to inspect the content of
msg
(that should be the error returned) and queue/error as you need to.Note that you will often have to set your response datatype to
RAW
. When the datatype isRAW
the response connector always runs. If it is some other datatype and the response is not that exact type, the connector will not run.