web stats
Compare files in Mirth - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2017, 07:53 AM
DragonQueen DragonQueen is offline
OBX.1 Kenobi
 
Join Date: Aug 2016
Posts: 37
DragonQueen is on a distinguished road
Default Compare files in Mirth

Hi

I need to compare two files in Mirth, the last received and the current file and process only the deltas. Is this possible in Mirth? If so, can someone please elaborate. I am on Mirth 3.4.2

Thanks
Reply With Quote
  #2  
Old 02-28-2017, 09:13 AM
jackwhaines jackwhaines is offline
 
Join Date: May 2011
Location: Kansas City, Missouri
Posts: 168
jackwhaines is on a distinguished road
Send a message via Skype™ to jackwhaines
Default

Are these small(ish) text files or large files?
__________________

-= Jack Haines : Healthcare Integrations, LLC
-= jack.haines@HealthcareIntegrations.com
-= Mirth Connect (Advanced)-certified
-= Gold member of HL7.org
-= Available for Mirth Connect channel development and consultation! Schedule a call with me at https://integrations.as.me
Reply With Quote
  #3  
Old 02-28-2017, 09:26 AM
DragonQueen DragonQueen is offline
OBX.1 Kenobi
 
Join Date: Aug 2016
Posts: 37
DragonQueen is on a distinguished road
Default

I decided to go a different route with this. I want to now save the Ids into a list or array to compare with another list or array. I am still trying to figure out how to do this.
Reply With Quote
  #4  
Old 02-28-2017, 10:28 AM
jackwhaines jackwhaines is offline
 
Join Date: May 2011
Location: Kansas City, Missouri
Posts: 168
jackwhaines is on a distinguished road
Send a message via Skype™ to jackwhaines
Default

Gotcha... I normally use a database to store IDs (and anything else persistent like that). If I can help, please don't hesitate to ask!
__________________

-= Jack Haines : Healthcare Integrations, LLC
-= jack.haines@HealthcareIntegrations.com
-= Mirth Connect (Advanced)-certified
-= Gold member of HL7.org
-= Available for Mirth Connect channel development and consultation! Schedule a call with me at https://integrations.as.me
Reply With Quote
  #5  
Old 03-03-2017, 10:24 PM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 832
siddharth is on a distinguished road
Default

There are some good methods in the apache commons FileUtils library that you can make use to achieve what you want.
https://commons.apache.org/proper/co...FileUtils.html

I don't think that there is ability on the default file reader connector to compare 2 different file modified times.
Reply With Quote
Reply

Tags
file reader, mirth 3.x

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 08:08 AM.


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