Real Time Information Director User Documentation

RTID Metadata Language
Hewlett-Packard Company 23 529618-002
private static DocumentRecord documentRecord =
new DocumentRecord("SALES_ORDER", new RelatedRecords[] {
new RelatedRecords("ROLE_SPEC_SLS_ORD_EVENT"),
new RelatedRecords("SALES_ORDER_DETAIL", new RelatedRecords[] {
new SplitRecord("SLS_ORD_SPEC_BUSINESS"),
new SplitRecord("SALES_ORDER_FLOW", new Links(new String[] {
"SALES_ORDER_NO","PRECEDING_DOCUMENT_NO",
"SALES_ORDER_ITEM_NO","PRECEDING_DOCUMENT_ITEM_NO"})),
new RelatedRecords("RL_SPEC_SO_DT_EV_OVRRD"),
new RelatedRecords("SLS_ORD_SCHEDULE_DT",new RelatedRecords[]{
new HistoryRecord("SLS_ORD_SCH_DT_HIST_STG")
})
})
});
// Metadata Constructor:
public Orders05()
throws MetadataInconsistency, SQLException {
super(documentRecord, idocSegment);
}
}
The content metadata also specifies a HistoryRecord, SLS_ORD_SCH_DT_HIST_STG.
This record will be inserted each time that a SLS_ORD_SCHEDULE_DT is inserted.
Unlike the other records in the order, the previous
SLS_ORD_SCHEDULE_DT_HIST_STG is not deleted (or replaced), because the intent
is to accumulate a history of schedule changes.
private static DocumentRecord documentRecord =
new DocumentRecord("SALES_ORDER", new RelatedRecords[] {
new RelatedRecords("ROLE_SPEC_SLS_ORD_EVENT"),
new RelatedRecords("SALES_ORDER_DETAIL", new RelatedRecords[] {
new SplitRecord("SLS_ORD_SPEC_BUSINESS"),
new SplitRecord("SALES_ORDER_FLOW", new Links(new String[] {
"SALES_ORDER_NO","PRECEDING_DOCUMENT_NO",
"SALES_ORDER_ITEM_NO","PRECEDING_DOCUMENT_ITEM_NO"})),
new RelatedRecords("RL_SPEC_SO_DT_EV_OVRRD"),
new RelatedRecords("SLS_ORD_SCHEDULE_DT",new RelatedRecords[]{
new HistoryRecord("SLS_ORD_SCH_DT_HIST_STG")
})
})
});
// Metadata Constructor:
public Orders05()
throws MetadataInconsistency, SQLException {
super(documentRecord, idocSegment);
}
}
Finally, notice the constructor for the Orders05 metadata class. This contructor calls the
superclass constructor with both the documentRecord that we just constructed, and the
idocSegment, which contains the tag-mapping metadata to be described in detail later.