web stats
filters before transformers? or, deleting segments? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-15-2011, 01:42 PM
DavidL DavidL is offline
OBX.1 Kenobi
 
Join Date: Sep 2011
Location: Dayton Ohio
Posts: 43
DavidL is on a distinguished road
Default filters before transformers? or, deleting segments?

I'm working on a project where our notifications arrive via delimited text files.

I need to route the message based on the file contents. I know how to do that; I have a filter working already.

But, in order for the filter to work, I basically have to parse the file contents.
Which I'm doing again in a transformer in the secondary channel anyway.

My first thought was, OK, I'll add a transformer. But, based on what I've seen here and the tutorials, I would guess that filters execute before transformers, in which case this would not work ... is that correct?

My second thought was, I could just fold most or all of the transformer into the filter, i.e. alter the message contents in the filter, before calling router.routeMessage() (if I decide to call it, that is).
And I can in fact get the new / transformed information into the message. However, I don't seem to be able to remove the 'delimited' segment.

I'm sure I can find a workaround ... but I'd like to do this correctly. And parsing the file contents twice (even if the files are small) is certainly less than optimal, so I'm not starting out well
Reply With Quote
 

Tags
delimited, filter, segment, transform

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 10:02 PM.


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