web stats
Mirth Community - View Single Post - Catch an event when a file reader source begins to read a file
View Single Post
  #2  
Old 04-23-2009, 12:17 PM
chrisr chrisr is offline
Mirth Employee
 
Join Date: Aug 2007
Posts: 65
chrisr is an unknown quantity at this point
Default

This is interesting, but a bit tricky. so, each time a new file is picked up, you want to truncate the database table?

I'd create two channels. Channel A picks up and reads in the entire content of the file, and re-routes it to another Channel B that processes the batch. You'll create a step in the Channel A that truncates the database table before the batch data is sent to Channel B.

That's just how I'd do it. Someone else may have a completely different approach.
__________________
Chris Ro
Sr. Software Engineer | Mirth Corporation
Reply With Quote