Real Time Information Director User Documentation
    RTID Metadata Language 
Hewlett-Packard Company  37  529618-002   
  new FieldsElement("POSEX", new String[] 
 {"SALES_ORDER_ITEM_NO","PRECEDING_DOCUMENT_ITEM_NO"}, IDOC.ITEM_NO), 
 new FieldElement("ACTION", "SALES_ORDER_ITEM_ACTION_CD"), 
… 
 new RecordSegment("E1EDP20","SLS_ORD_SCHEDULE_DT",new TagDefinition[]{ 
 new FieldElement("WMENG", "CONFIRMED_QT"), 
 new FieldElement("EDATU", "SCHEDULE_LINE_DT"), 
 new FieldElement("EZEIT", "DELIVERY_TM"), 
 new Segment("ZEEDP20", new FieldElement[] { 
 new FieldElement("ETENR", "SCHEDULE_LINE_NO", 
IDOC.LINE_NO), 
 new FieldElement("LDDAT", "LOADING_DT"), 
 new FieldElement("MBDAT", "MATERIAL_AVAILABILITY_DT"), 
 new FieldElement("WADAT", "CURRENT_SCHEDULED_SHIP_DT"), 
 new FieldElement("EDATU", "CUSTOMER_REQUESTED_RECEIPT_DT"), 
 new FieldElement("WMENG", "REQUESTED_QT") 
 }) 
 }), 
 new RecordSegment("E1EDPA1","RL_SPEC_SO_DT_EV_OVRRD",ORDER_EVENT_TAGS), 
RecordSegment 
The RecordSegment class maps a segment to a record in a table. 
RecordSegment has the following parameters: 
•  String tagName. This parameter is the XML tag that identifies the segment and is 
required. 
•  String tableName. This parameter is the name of the table to which the record 
must be added and is required. 
•  TagDefinitions[] tagDefinitions. This array of tag definitions specifies which data 
elements in the segment should be mapped to which columns in the record. The 
parameter is required. 
•  SegmentFormatter segmentFormatter. This optional parameter specifies custom 
logic to be applied to the whole record, as described in “Segment Formatter 
Classes.” An example of a SegmentFormatter is ImpliedField, which specifies a 
value to be written to a specific column when this segment occurs in the inbound 
document. 
Many kinds of tag definitions can be nested within a RecordSegment: both elements and 
segments, both fields and other records. 
Here are possible constructors for the RecordSegment class: 
public RecordSegment(String tagName, String tableName, TagDefinition[] 
tagDefinitions) 
public RecordSegment(String tagName, String tableName, SegmentFormatter 
segmentFormatter, TagDefinition[] tagDefinitions) 










