Difference between revisions of "Edi Lenient Mode"
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:How_To]] | [[Category:How_To]] | ||
− | Fusion Registry may be run in "EDI Lenient" mode. When running in this mode certain aspects of EDI which are enforced by the EDI standard are ignored. | + | [[Category:How_To V11]] |
+ | Fusion Metadata Registry may be run in "EDI Lenient" mode. When running in this mode certain aspects of EDI which are enforced by the EDI standard are ignored. | ||
== Structures == | == Structures == | ||
EDI does not permit a structure to reference another structure belonging to a different Agency. When running in EDI Leniency mode, this restriction is disabled and the structures will all be stated as belonging to the same agency. For example, a Data Structure Definition in Agency 1 if it refers to a Codelist in Agency 2 cannot strictly be converted into EDI since EDI cannot express that the DSD and Codelist are in different agencies. In EDI Leniency mode, the outputted EDI file would state that both are owned by Agency1. | EDI does not permit a structure to reference another structure belonging to a different Agency. When running in EDI Leniency mode, this restriction is disabled and the structures will all be stated as belonging to the same agency. For example, a Data Structure Definition in Agency 1 if it refers to a Codelist in Agency 2 cannot strictly be converted into EDI since EDI cannot express that the DSD and Codelist are in different agencies. In EDI Leniency mode, the outputted EDI file would state that both are owned by Agency1. | ||
+ | |||
The EDI standard does not support uncoded dimensions in a Data Structure. All dimensions must be explicitly coded. When running in EDI Leniency mode, Data Structures with uncoded dimensions may be read or written without an exception being thrown. | The EDI standard does not support uncoded dimensions in a Data Structure. All dimensions must be explicitly coded. When running in EDI Leniency mode, Data Structures with uncoded dimensions may be read or written without an exception being thrown. | ||
Line 20: | Line 22: | ||
<code> | <code> | ||
− | SET JAVA_OPTS=- | + | SET JAVA_OPTS=-Dedi.lenient.enabled=true |
</code> | </code> | ||
''(For Windows systems)'' | ''(For Windows systems)'' | ||
<code> | <code> | ||
− | export JAVA_OPTS=- | + | export JAVA_OPTS=-Dedi.lenient.enabled=true |
</code> | </code> | ||
''(For Unix systems)'' | ''(For Unix systems)'' |
Latest revision as of 06:06, 5 September 2022
Fusion Metadata Registry may be run in "EDI Lenient" mode. When running in this mode certain aspects of EDI which are enforced by the EDI standard are ignored.
Structures
EDI does not permit a structure to reference another structure belonging to a different Agency. When running in EDI Leniency mode, this restriction is disabled and the structures will all be stated as belonging to the same agency. For example, a Data Structure Definition in Agency 1 if it refers to a Codelist in Agency 2 cannot strictly be converted into EDI since EDI cannot express that the DSD and Codelist are in different agencies. In EDI Leniency mode, the outputted EDI file would state that both are owned by Agency1.
The EDI standard does not support uncoded dimensions in a Data Structure. All dimensions must be explicitly coded. When running in EDI Leniency mode, Data Structures with uncoded dimensions may be read or written without an exception being thrown.
Data
EDI enforces the following limits on a data file:
- The Observation Value is limited to a maximum of 15 characters
- The Observation Attribute “OBS_STATUS” is limited to a maximum of 35 characters
- The Observation Attribute “OBS_CONF” is limited to a maximum of 35 characters
- The Observation Attribute “OBS_PRE_BREAK” is limited to a maximum of 15 characters
When running in EDI Leniency mode, none of the above restrictions apply when reading or writing a data file.
Enabling EDI Leniency Mode
To run the Registry in EDI Lenience Mode, the Registry must be started and a Java System variable called "edi.lenient.enabled" must be specified and set to "true". This is supplied via the -D parameter thus: -Dedi.lenient.enabled=true
When using Apache Tomcat, the simplest way to perform this is by modifying the setenv.bat or setenv.sh file. To illustrate this:
SET JAVA_OPTS=-Dedi.lenient.enabled=true
(For Windows systems)
export JAVA_OPTS=-Dedi.lenient.enabled=true
(For Unix systems)