Skip to content

Triggering different channel from script in current channel #6161

Answered by jonbartels
areutera asked this question in Q&A
Discussion options

You must be logged in to vote

I think @pacmano1 has described the best solution - If messages are held, then use a separate database call to store those messages. The Mirth queue is meant for short-term message storage while other messages process, it is not meant for a longer delay waiting on external processes.

What the DB allows you to do is:

  1. Recognize a message should be held and write it to the DB
  2. When some other event happens, update the DB saying "stop holding this and send it"
  3. Then your ORU and BAR channels can just poll the DB. SELECT * FROM holding_tank WHERE ready_to_send = true
  4. After sending your channels can then either UPDATE the status or DELETE the messages from the holding tank.

My colleagues runni…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@pacmano1
Comment options

@areutera
Comment options

@pacmano1
Comment options

@jonbartels
Comment options

Answer selected by pacmano1
@areutera
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants