The chapter
System Definitions explains the single
keys in detail.
Entries for the Source Interface - plus those necessary for the specific receiver
Chapter |
Section |
Key |
Value |
System |
source interface name |
Message |
RecordTypeMessage |
System |
source interface name |
Receiver |
Receiving result Text or Object for string- or
byte-array-oriented parsing |
System |
source interface name |
DescriptionFile |
name of the source structure description XML file without path |
System |
source interface name |
RecordLineLength |
only necessary if records are to be identified by
counting bytes instead of reading until line breaks |
System |
source interface name |
LineCutting |
true or false (default false), only necessary if
records are to be identified by line breaks and ending blanks may be cut from the
record lines |
Evidently the message has to be "RecordTypeMessage".
The record type transformation works based on file receivers with read data into
strings and
based on byte array receivers. Switching the Receiver
determines if the interface content accessed in a string- or
byte-array-oriented way. Internally
the interface content is stored in a DOM tree instead of a string.
(For information on the different receivers,
please refer to the chapter
Technical Layer.)
The last 3 keys are really particular to interfaces with record transformation
(and
byte array data transfer without transformation).
The DescriptionFile
entry tells the system where to find the description of
the source interface data
structure. This structure description is essential for parsing. All XML interface
descriptions
are stored in the directory etc/InterfaceDescriptions
within the xBus
home directory. Information about its structure are listed in the section
XML interface file descriptions.
The RecordLineLength
instructs the parser to count bytes to separate the
records. The receiver must produce a ByteArrayList to use this. The default for
recognising the records is searching for line breaks. This default behivour is changed
by setting the parameter to the line length in bytes. All records must have the same
length in this case.
The LineCutting
instructs the parser fill ending fields if ending blanks
are cut off in the source if it is set to true
. The default value is
false
. The records must be identified by line breaks to use the feature.
Entries for the Destination Interface
Chapter |
Section |
Key |
Value |
System |
destination interface name |
Message |
RecordTypeMessage |
System |
destination interface name |
Sender |
the sender class to use |
System |
destination interface name |
DescriptionFile |
name of the destination structure description XML file without path |
Most configuration entries are just like for the source interface - only describing
destination features. The only new is the sender key. It specifies which method to
use for
writing to the destination system. Usually for RecordTypeMessages this is a sender for
writing files. The record type transformation works with senders
which write data in a string-oriented or a byte array oriented manner.
Switching the Sender
selects between both alternatives.
Receiver and sender may even differ
in this aspect. Reading byte arrays and writing strings is as well possible as the
contrary.
(For information on the different senders, please refer to the chapter
Technical Layer.)
The DescriptionFile
entry key is once again the only particular to
interfaces with record transformation.
Even it is not necessary for
byte array data transfer without transformation.
It tells the system where to find the description of the destination interface data
structure. This structure description is essential for serializing the internally used
DOM
tree. All XML interface descriptions
are stored in the directory etc/InterfaceDescriptions
within the xBus
home directory. Information about its structure are listed in the section
XML interface file descriptions.
Entries for the Routing
Chapter |
Section |
Key |
Value |
Router |
source interface name.function |
Invoken |
destination interface name |
Router |
source interface name.function |
Distributen |
destination interface name |
RecordTypeMessages
can only be used with invoke
distribute
routing. In the first case the pesponse part of the message
will be populated with the transformation result, in the second the request part.
Entries for the Transformation
Chapter |
Section |
Key |
Value |
XSLTStylesheet |
source interface name |
destination interface name |
XSL style sheet name |
Transformer |
RecordTypeMessage |
RecordTypeMessage |
RecordTypeTransformer |
The transformation class is always
RecordTypeTransfomer.
It performs the transformation by application of a XSL style sheet to the internally used
DOM tree of the source data. Which style sheet to choose is determined by the described key.
The XSL file is specified by its name without any path because all style sheets are stored in
the directory etc/xsl
within the xBus
home directory. Information about its structure are listed in the section
XSL transformation style sheets.
Entries for the XML Parser
Chapter |
Section |
Key |
Value |
ParserSettings |
RecordTypeMessage |
IgnoringComments |
true |
ParserSettings |
RecordTypeMessage |
IgnoringElementContentWhitespace |
true |
ParserSettings |
RecordTypeMessage |
XMLValidating |
false |
ParserSettings |
RecordTypeMessage |
CheckingActivated |
false |
The parser settings determine how the interface description documents are parsed. The first
two parameters have to be "true" because the RecordTypeParser and RecordTypeSerializer classes
are not capable of treating DOM tree nodes without substantial content, i.e. comment nodes
and text nodes with formating whitespace sequences. The last two parameters should be set to
"false" to avoid checking the interface descriptions again and again. Activating the checks
is interesting during developing new interface descriptions in XML. See also
Configuration of parser options.