web stats
Mirth Community - View Single Post - How to get the "connection status of channel"
View Single Post
Old 05-07-2015, 10:59 PM
Jurjan Jurjan is offline
OBX.1 Kenobi
Join Date: Feb 2011
Posts: 37
Jurjan is on a distinguished road

For people following this:
I got it working using the following:
var ChanController = Packages.com.mirth.connect.server.controllers.Chan nelController.getInstance();
var defController = Packages.com.mirth.connect.server.controllers.Defa ultExtensionController.create();
var monitor = defController.getServicePlugins().get(Packages.com .mirth.connect.plugins.dashboardstatus.DashboardCo nnectorStatusMonitor.PLUGINPOINT);
var states = monitor.invoke('getStates', null, null);

status = states.get(channelID + '_0')[1];

Main, important, change seems to be the change from
states.get(channelID + '_source_connector')[1];
states.get(channelID + '_0')[1];

Last edited by Jurjan; 05-07-2015 at 11:00 PM. Reason: typo's
Reply With Quote