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

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 11-16-2011, 01:20 PM
duggram duggram is offline
OBX.1 Kenobi
Join Date: Nov 2010
Location: ABQ, NM
Posts: 29
duggram is on a distinguished road

Is there a reason that you can't use one of your XML files as a template? You can use one in the source filter and any transformer (source or destination) steps. Then it's just a drag and drop process to create a simple filter in Rule Builder or use JavaScript. The same can be done in a transformer.

In your destinations you can use an XML file formatted like the one you want to deliver as a template in the "Outbound Message Templates" to again make the process drag and drop. Now you can use the Message Builder or JavaScript to transform you message as you wish.

The router I was referring to is the Message Router pattern. It's implemented in Mirth with channel writers and listeners. It spreads all the operations out if you have multiple filter/transformer requirements. The router Java object doesn't offer the same visual pattern representation or opportunity for transformations.
Reply With Quote
Old 11-17-2011, 10:01 AM
DavidL DavidL is offline
OBX.1 Kenobi
Join Date: Sep 2011
Location: Dayton Ohio
Posts: 43
DavidL is on a distinguished road

I'm just showing the XML because that's what I see from msg.toString(). I think what I have now will work, thanks.

I've discovered, however, that when routing to a separate channel I seem to lose some metadata, e.g. in the destination channel dates seem to have been transformed to strings.
I don't know for sure that this is going to be an issue. If it does, I'll probably just serialize the message payload as JSON and deserialize it in the destination channel.
Reply With Quote

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 07:14 PM.

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