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

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2017, 10: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

Hi,

I am using Mirth Connect Server 3.1.1.7461.

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:
Code:
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
Reply

Tags
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:47 AM.


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