web stats
Mirth Community - View Single Post - Catch an event when a file reader source begins to read a file
View Single Post
  #1  
Old 04-21-2009, 10:35 AM
carles carles is offline
OBX.2 Kenobi
 
Join Date: Mar 2007
Location: Girona
Posts: 62
carles is an unknown quantity at this point
Question Catch an event when a file reader source begins to read a file

I'm doing a channel with a File Reader at source and a Database Writer at destination.
The file is a delimited one (using | as column delimiter and \n as a record delimiter)
The file contains about 400 records (the hospital census)
the channel polls for a new file every 15 minutes and "Process Batch files" are checked to "yes"

I want to put all this records in a Database table.

Till here, it seems an easy task to do with Mirth.
But, I want to perform some actions in the database table (if fact, delete all the previous records) when a new file is starting to be processed before putting records on it.

I wonder if exists an event in Mirth that can be triggered when a file is readed or begins to be readed that I could use to perform these actions.

thanks a lot.

carles massallé
Reply With Quote