MIRTH-2749
MIRTH-2787

Fixed bug when importing a transformer and appending steps after previously deleting steps - the deleted steps were being restored.

Cleaned up and refactored code in FilterPane and TransformerPane.

Improved the error dialogs that pop up when rule/step type plugins are missing.

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6687 c801cdd1-710f-0410-a44a-8d9edceeb29b
MIRTH-2789: Fixed concurrent modification exception in ServerLogProvider that occurs occasionally when sending a large amount of messages to the server log. The issue was that two instances of ServerLogProvider were being created rather than one, so the synchronization on the newServerLogReceived and invoke methods wasn't working as intended.

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6689 c801cdd1-710f-0410-a44a-8d9edceeb29b
MIRTH-2479, MIRTH-2676: Reverted the addition of a response timeout to the Channel Writer.

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6690 c801cdd1-710f-0410-a44a-8d9edceeb29b
Fixed bug that prevented the DB Reader's SQL Creation dialog from loading if the source database had any table names that contained certain special characters such as '$' or '/'.
Issue: MIRTH-2788


git-svn-id: https://svn.mirthcorp.com/connect/trunk@6691 c801cdd1-710f-0410-a44a-8d9edceeb29b
MIRTH-2755: Fix bug that caused imported 2.x invalid channels to not show the correct exception in the client. ImportConverter3_0_0 now has a convertTransportName method that Frame uses to check for the old naming scheme of certain connectors.

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6692 c801cdd1-710f-0410-a44a-8d9edceeb29b
MIRTH-2447
MIRTH-2768

Rewrote the reconnect logic for the JMS connectors. Fixed bug that resulted in a new reconnect thread being created each time a message attempted to send from the dispatcher.

Also changed behavior so that if a message fails to send due to a connection error, it will attempt to reconnect before allowing the message to error.

Updated tooltip on the retry interval field in the JMS Writer panel to communicate that the interval is only relevant when the connector is idle.

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6693 c801cdd1-710f-0410-a44a-8d9edceeb29b
Increased the minimum line count in the Database Reader SQL/Javascript panes from 4 to 7.
Issue: MIRTH-2766


git-svn-id: https://svn.mirthcorp.com/connect/trunk@6694 c801cdd1-710f-0410-a44a-8d9edceeb29b
MIRTH-2794: Fixed bug that caused EDI/X12 to not correctly infer the segment delimiter.

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6695 c801cdd1-710f-0410-a44a-8d9edceeb29b
MIRTH-2764
MIRTH-2795

Added prompt to save changes if the user clicks Prune Now and there are unsaved changes.

Removed two unused methods in DataPrunerPanel.

Fixed bug that prevented the Prune Now menu item from re-appearing automatically if the pruner ran instantly.

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6696 c801cdd1-710f-0410-a44a-8d9edceeb29b
If a message was reprocessed (without overwriting the existing message), the original message id is now available in the message browser under the new column "Original Id".

Original Id is searchable under the advanced search options.

Added import channel id to the message browser table, which is the original channel if a message was imported. This was already being stored but never used.

Added originalId to Message and updated related queries

RawMessage now stores a boolean that indicates whether the message should be replaced, as well as the original message Id. Previously these two features were combined into one via a null check.
Issue: MIRTH-1640


git-svn-id: https://svn.mirthcorp.com/connect/trunk@6697 c801cdd1-710f-0410-a44a-8d9edceeb29b
Fixed bug that prevented the message archiver from finishing cleaning up temporary folders on Windows.
Issue: MIRTH-2765


git-svn-id: https://svn.mirthcorp.com/connect/trunk@6698 c801cdd1-710f-0410-a44a-8d9edceeb29b
Trim string values used in custom meta data columns to a length of 255, to prevent database errors since the max column length is 255.
Issue: MIRTH-2793


git-svn-id: https://svn.mirthcorp.com/connect/trunk@6699 c801cdd1-710f-0410-a44a-8d9edceeb29b
Updated derby jar in Donkey to use the same version that's in the Server: 10.10.1.1
Issue: MIRTH-2706


git-svn-id: https://svn.mirthcorp.com/connect/trunk@6700 c801cdd1-710f-0410-a44a-8d9edceeb29b
MIRTH-2334, MIRTH-2797: Added back the source/type/version as default custom metadata columns.

A populateMetaData method has been added to XmlSerializer which is used in the FilterTransformerExecutor to extract metadata and place it in the connector map. Some data types place metadata in the map, some don't (like DICOM or Raw). In the Administrator, we add the Source and Type columns by default when creating a new channel. The user can specify which columns show up by default in the server settings.

The getMetadataFromDocument method in IXMLSerializer has been replaced with getMetaDataForTree. This method gets metadata that should be shown in the message template tree. Sometimes it's the same information (like HL7 v2.x), sometimes it's not (like XML).

The default metadata columns are stored in ServerSettings as a List, so that we can easily migrate to a more complex column table later on. The default core property is *not* stored in the database upon creation or migration, so if a user installs 3.0, never saves the server settings, and upgrades to a later version in which we've updated the default columns, their installation would then have the newly updated columns, instead of preserving the 3.0 defaults (source and type).

Quick parsing (getMetadataFromEncoded) really only existed for ER7 in 2.x. EDI/X12/NCPDP implemented the method, but actually just serialized the data and called getMetadataFromDocument instead. So even if there wasn't an active transformer, the message was still being serialized. Now there is quick metadata parsing for both EDI/X12 and NCPDP. Also, the quick parsing in ER7Serializer has been rewritten to be more efficient.

The MessageObject and ValueReplacerConnectorMessage userutil objects have been updated so that the deprecated methods now work (even though they're still deprecated).

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6701 c801cdd1-710f-0410-a44a-8d9edceeb29b
Fixed server build so that the /lib/donkey folder is cleared first before copying jars over from donkey.

Also moved these steps from the build-server-extensions target into the build-donkey target since they make more sense there.
Issue: MIRTH-2801


git-svn-id: https://svn.mirthcorp.com/connect/trunk@6702 c801cdd1-710f-0410-a44a-8d9edceeb29b
MIRTH-2334: Refactored getMetaDataForTree to getMetaDataFromMessage.

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6703 c801cdd1-710f-0410-a44a-8d9edceeb29b
Updated Donkey to support multiple servers running on a single database.

On message recovery, only recover messages for the current server.

Made sure that source/destination queues only select messages for the current server.

When reprocessing and replacing a message, the message is now re-assigned to the current server id.
Issue: MIRTH-2792


git-svn-id: https://svn.mirthcorp.com/connect/trunk@6704 c801cdd1-710f-0410-a44a-8d9edceeb29b
MIRTH-2803: Modified TcpDispatcher so that it stores a map of connected sockets, keyed by the permutation of local/remote address/port properties. When Keep Connection Open is enabled, discrete sockets and timeout threads are used, so each connection stays open as needed.

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6705 c801cdd1-710f-0410-a44a-8d9edceeb29b
MIRTH-2802: Added a Paused initial state to channels.

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6706 c801cdd1-710f-0410-a44a-8d9edceeb29b
MIRTH-2804
Removed unused indexes.

Determined that Postgres does not use the index on (message_id, id) even when those are the only columns in the where clause. It uses the (messageid, id, status) index instead.

MIRTH-2792
Added new index to the d_m table to account for queries that now must scan for both id and server_id.

git-svn-id: https://svn.mirthcorp.com/connect/trunk@6707 c801cdd1-710f-0410-a44a-8d9edceeb29b