web stats
How do I pause a destination connector? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2015, 10:12 AM
clinjohn clinjohn is offline
OBX.2 Kenobi
 
Join Date: Apr 2015
Posts: 95
clinjohn is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old 06-11-2015, 10:15 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,099
narupley is on a distinguished road
Default

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: http://javadocs.mirthcorp.com/connec...lang.String%29
__________________
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
connector, destination, pause

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 08:10 AM.


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