IntergastPreParser

Configuration file

sample_IntergastPreParser.properties

Class name

com.ebd.hub.datawizard.parser.IntergastPreParser

Description


The IntergastPreParser reads all Intergast files from a ZIP archive and, depending on the file name, places a prefix at the beginning of each line when merging them. The configuration file defines the prefix to be used for each message file. All file types contained in the archive have to be listed in the configuration file. Additionally, the merging order of the partial messages and mandatory partial message types can be specified. The partial message file names have to start with the message type, followed by an underscore (_). The message type in the file names of the partial messages is needed for the replacement with prefixes in the merged message.

A file with the name DELIVINFO_0815_20150401.txt would require an entry like the following in the configuration file:


DELIVINFO=001

Note: The message type has to be specified in uppercase letters.

Parameters


Parameter

Description

order

Order in which the files should be merged.

mandatory

Specifies the prefixes that have to be contained in the merged message.

trigger

Inserts a line with the value specified here before every partial message content.

header

Inserts a header line with the value specified here at the beginning of the merged message.

Example file


sample_IntergastPreParser.properties
#
# Config file for 'Intergast' preparser
#
# Prefix definition: MESSAGETYPE= prefix
# MESSAGETYPE must be written in UPPERCASE!
#
PREISSWARENOGR=001
LIEFINFO=002
RECHNUNGEN=003
#
# Order sequence: prefix, prefix, prefix, ...
#
order = 001,002,003
#
# Mandatory files: prefix, prefix, ...
#
mandatory = 001,002
#
# Trigger: Will add trigger value in front of each file content
#
trigger = myTrigger
#
# Create header line - only once and does not make sense when using trigger...
#
#header = myHeader