Open rbeckman-nextgen opened 5 years ago
ASTM Channel
Imported Comment. Original Details: Author: kgouw Created: 2017-08-23T14:35:55.000-0700
Sample Message/Batch
Imported Comment. Original Details: Author: kgouw Created: 2017-08-23T14:36:14.000-0700
-----Issue----- The channel has ASTM E1394 Data Type with "Split Batch By" set to "Javascript" with a block of Javascript. When reading a batch via TCP Listener, the Javascript doesn't seem to run at all. When reading a batch via "Send Messages" (right click the channel, Send Messages), the Javascript runs and works as intended.
So far I have verified that this occurs on Mirth Connect v3.5, and v.3.4.1.
-----Prerequisites----- -ASTM Data Type Plugin
-----Attached Files----- -ASTMbatch.xml -SampleSplit.txt
-----Channel Summary----- The channel export attached has the following settings
-"Data Type: ASTM E1394" (Both Inbound / Outbound) --"Split Batch By: JavaScript" (Inbound Properties / Source Connector)
The channel has a "Source Connector: TCP Listener", and "TCP Listener settings" set to "client". "TCP Listener Settings - Mode: Client" "Remote Address - " (This field will change and needs to point to the address you are testing on) "Remote Port - " (This field will change and needs to point to the port you are testing on)
-----How to Test----- To have the channel read the batch from a specific port, I tested simply by opening Terminal on my local machine, navigating to the folder where SampleSplit.txt is, then running the following command "sudo nc -l -v 10001 < SampleSplit.txt" 10001 being the port number I used. (change if 10001 isn't used in the field "TCP Listener Settings - Remote Port").
Under "TCP Listener Settings", the "Remote Address" needs to be changed to point to your local machine's IP. Then Save / Deploy the channel.
It works as intended when right clicking the channel, then click "Send Messages" -> "Open Text File", then choose the "SampleSplit.txt" -> "Process Message".
Imported Issue. Original Details: Jira Issue Key: MIRTH-4210 Reporter: kgouw Created: 2017-08-23T14:35:18.000-0700