Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

Filter Based on ChannelMap Value from Destination?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Filter Based on ChannelMap Value from Destination?

    I have a single channel with two destinations (Database Writer, and File Writer in that order). What I am trying to do is set a value in the Database Writer which I can check in the File Writer filter to determine if I should filter or not. The idea I'm trying to get to is that the File Writer is an exception log of messages which the Database Writer could not handle (for various reasons). So, in my Database Writer JavaScript I do the following:
    Code:
    channelMap.put('succcess', true);
    //or
    channelMap.put('success', false);
    
    //In the filter associated with the File Writer I check this value:
    return !chanelMap.get('success');
    This, however, this is not working and the message is ALWAYS processed by the File Writer.
Working...
X