Oracle® Fusion Middleware Developer's Guide for Oracle Service Bus 11g Release 1 (11.1.1.5.0) Part Number E15866-03 |
|
|
View PDF |
Defines the fields contained in the message format. Fields are a sequence of bytes that have some meaning to an application. (For example, the field EMPNAME
contains an employee name.) You can create a field as a child of the message format item, as a child of a group, or as a sibling of a group or another field.
Table 12-1 Fields in Message Format – Field Description
Field | Description |
---|---|
Name |
The name of the field. This name must comply with XML element naming conventions (see Section 10.6, "Valid Names" for more information). |
Optional |
Select this option if this is an optional field. Optional means that the data for the field might be present in the input. If the Optional option is selected for a file, then you can set the Field is Tagged option from the Field Attributes pane. In addition, in the Field Is Tagged text box, enter a unique value for each optional field in a group. Multiple groups can use the same tag value, but the tag value for each optional field in a group must be unique. |
Type |
Select the data type of the field from the list. The default is String. Note: The Field Type you select dictates the Field Data Options that appear on the dialog. Refer to Chapter 22, "Format Builder Supported Data Types" for a list of data types supported by Format Builder. |
Table 12-2 Fields in Message Format – Field Occurrence
Field | Description |
---|---|
Occurrence |
Choose one of the following to indicate how often this field appears in the message format:
Note: Unless a field is defined as optional, the field occurs at least once. |
The fields in the following sections of the detail window depend on the Field Type selected.
Table 12-3 Fields in Message Format – Field Data Options
Field | Description |
---|---|
Data Base Type |
If the field is a date or time field, the base type indicates what type of characters (ASCII, EBCDIC, or Numeric) make up the data. |
Year Cutoff |
If the field is a date field that has a 2-digit year, the year cutoff allows the 2-digit year to be converted to a 4-digit year. If the 2-digit year is greater than or equal to the year cutoff value, a '19' prefix will be added to the year value. Otherwise a '20' prefix will be used. |
Code Page |
The character encoding of the String field data. |
Value |
The value that appears in a literal field. |
Table 12-4 Fields in Message Format – Field Attributes
Field | Description |
---|---|
Field is Tagged |
Select this option if this is a tagged field. Being tagged means that a literal precedes the data, indicating that the data is present. For example: If you have selected the Field is Tagged option, enter the tag in the text box to the right of the checkbox. |
Field Default Value |
Select this option if the field has a default value. Then, enter the default value in the text box to the right of the checkbox. |
Table 12-5 Fields in Message Format – Termination
Field | Description |
---|---|
Length |
Variable-sized data types can be assigned a fixed length, eliminating the need to use a delimiter to specify the termination point of the field.
If you select both truncation options, the Truncate First option is implemented initially, and the Truncate After option is invoked on the remaining characters. |
Imbedded Length |
Variable-sized data types can have their termination point specified by an imbedded length. An imbedded length precedes the data field and indicates how many bytes the data contains.
|
Delimiter |
Variable-sized data types can have their termination point specified by a delimiter. A delimiter is a character that marks the end of the field. The field data continues until the delimiter character is encountered.
|
Delimiter Field |
Variable-sized data types can have their termination point specified by a field that contains a delimiter character. A delimiter is a character that marks the end of the field. The field data continues until the field containing the delimiter character is encountered.
For more information on delimiters, see Section 20.12, "Character Delimiters." |
Decimal Position |
Specifies the number of digits (0-16) to the left of the decimal point. |
Table 12-6 Fields in Message Format – Literal
Field | Description |
---|---|
Value |
Specify the literal value. Literal value can be defined as a single value or it can be defined a list of values separated by the literal separator. When the Value is a list of values, the data for the literal field in the binary data will be one of value in the list. |
Literal Separator |
Supports enumeration of literal values. For literal type Field in MFL definition, a literal separator can be specified when multiple choices of value is needed for the Field. For example, segment terminators that are supported by both EDIFACT and X12 EDI standards are: In the MFL file, you should see the following structure, <FieldFormat name='ISA_Terminator' type='Literal' value='\r\n,\r,\n,~,|' literalSeparator=','/> |
Table 12-7 Fields in Message Format – Field Update Buttons
Field | Description |
---|---|
Apply |
Saves your changes to the message format file. |
Duplicate |
Makes a copy of the field currently displayed. The duplicate field contains the same values as the original field. The name of the duplicate field is the same as the original field name, with the word "New" inserted before the original name. For example, duplicating a field called "Field1" results in a field with the name "NewField1". When you duplicate an item with a numeric value in its name, the new item name contains the next sequential number. For example, duplicating "NewField1" results in a group named "NewField2". |
Reset |
Discards your changes to the detail window and resets all fields to the last saved values. |
Help |
Displays online help information for this detail window. |
Note:
The Apply and Reset buttons are only enabled once changes are made to the detail panel's components.