web stats
How to perform actions after a File Reader poll is complete? - Page 2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #11  
Old 03-09-2018, 06:59 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 754
agermano is on a distinguished road
Default

That's a pretty good solution you came up with. One thing you might consider is how recovery will work in case something happens during processing (exception thrown, server crash, whatever.)

A couple nitpicky things,

You could set foundFileCount to foundFiles.length instead of incrementing it in the loop.

You should probably return results.toString() since a JS Reader should return a String or RawMessage (or a List of them for multiple messages.)
Reply With Quote
  #12  
Old 03-12-2018, 02:32 AM
odo odo is offline
OBX.3 Kenobi
 
Join Date: Feb 2017
Location: Luxembourg
Posts: 137
odo is on a distinguished road
Default

Quote:
Originally Posted by agermano View Post
Maybe open a Jira ticket for a feature request and post your patch there?
JIRA-ticket can be found here: http://www.mirthcorp.com/community/i...wse/MIRTH-4252
Reply With Quote
  #13  
Old 09-05-2018, 10:55 PM
odo odo is offline
OBX.3 Kenobi
 
Join Date: Feb 2017
Location: Luxembourg
Posts: 137
odo is on a distinguished road
Default

Feature was added to Mirth Version 3.6.0:

Quote:
Nick Rupley added a comment - 25/May/18 1:29 PM

The following variables are now put into the source map when using the File Reader:
  • pollId: Unlike batchId, pollId is set to a unique string based on nanotime
  • pollSequenceId: Similar to batchSequenceId, contains a number starting at 1 and incrementing
  • pollComplete: Only present for the final message in a poll window, value is always tr
ue
Reply With Quote
Reply

Tags
complete, file reader, status

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 10:13 PM.


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