Split Batch by Javascript with TCP as source only works when sending as test message within channel. #6524
Unanswered
AgnerSantiago
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Where is the JS code? Post it here. Please use code formatting and syntax highlighting. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am not sure what I'm missing or doing wrong, but I have Java script setup for splitting a batch of HL7 messages. The channel is setup as such;
Mirth 4.5.2 version
Data Types
Inbound HL7 v2.x
*Evertying is default execpt Batch
Batch
Split Batch By = Javascript
Javascript has code which splits on a set of lines (code is valid and "works")
Source TCP Listener MLLP
Process Batch = yes
Batch Response = Last
Mode Server
The scenario I'm seeing is. If I go to the channel dashboard and manually send a message there. The splitting successfully happens and I get all the split individual messages.
If I however send the message via the tcp port, the splitting is bypassed completely and all I see is the large batch message.
var line = reader.readLine()
logger.info(line);
return '';
Beta Was this translation helpful? Give feedback.
All reactions