web stats
File Reader - force a move to error directory - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-27-2017, 11:40 PM
JasmeetSingh JasmeetSingh is offline
What's HL7?
Join Date: Nov 2012
Posts: 3
JasmeetSingh is on a distinguished road
Default File Reader - force a move to error directory


I am using Mirth Connect Server

Here is what I am trying to achieve:
  1. Pick up a file using File Reader
  2. Create batches of 50 lines using javascript in Data Types
  3. If any one entry of the batch is not processed, then mark the batch as ERROR
  4. Once all batches are complete, if anyone batch is in ERROR then move the file into error directory

For point #3, I am putting following code in my transformer response:
responseStatus = ERROR;
I chose my destination name in Response drop down of source. However it is still moving files to processed folder.

I want that out of 10 batch (for example), even if one batch is failed then the file should be moved to error folder.

How can I achieve this?
Reply With Quote

file, reader, response, responsemap

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 09:41 AM.

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