No announcement yet.

How do I pause a destination connector?

  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I pause a destination connector?

    I'm using Mirth 3.2.1, and I'm building a kind of cronjob-like channel that starts and pauses several other channels. This cronjob channel is based on a source JavaScript Reader with code that starts and pauses other channels and a destination Channel Writer that does nothing.

    We need this for file deliveries that occur at various specific times of certain days, i.e. too complex simply to use the Polling Settings in the various channels. We want to pause channels rather than stop them so that we can manually transmit files if we need without starting them up at the wrong times.

    For channels that have multiple destinations there are cases where we need to start or pause the individual destinations on different schedules from each other. I know I can start or stop a destination using ChannelUtil.StartConnector() or ChannelUtil.StopConnector() respectively, but there doesn't appear to be an equivalent pause method. Anyone know a way to do this?

  • #2
    There is no pause method because the notion that an individual connector can be "paused" doesn't even exist in Mirth Connect.

    The overall channel can be paused, which basically amounts to stopping the source connector. If destination connectors have queuing enabled then they can be stopped as well.

    If you want to pause a channel, use the pauseChannel method:
    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.