web stats
Mirth Community - View Single Post - Message validation
View Single Post
  #8  
Old 02-21-2012, 07:27 PM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,124
narupley is on a distinguished road
Default

This should work:

Code:
com.mirth.connect.server.controllers.DefaultMessageObjectController.create().updateMessageStatus(new java.lang.String(channelId),new java.lang.String($('messageId')),com.mirth.connect.model.MessageObject.Status.FILTERED);
com.mirth.connect.server.controllers.DefaultChannelStatisticsController.create().decrementSentCount(new java.lang.String(channelId));
You'll also have to set the messageId variable (at least at the channel map level) somewhere in your destination connector, otherwise it'll try to update your Source connector entry.
Reply With Quote