Real Time Information Director User Documentation
    RTID Metadata Language 
Hewlett-Packard Company  43  529618-002   
PredicatedFieldElement 
The PredicatedFieldElement class maps a data element into a column if a specified 
column has a specified value. 
PredicatedFieldElement has the following required parameters: 
•  String tagName. This parameter is the XML tag of the data element to be 
mapped. 
•  String columnName. This parameter is the database column to which to map the 
data element if the specified condition is met. 
•  String qualifierName. This parameter is the database column whose value 
determines whether the mapping occurs. The mapping of some data element to 
this column must occur earlier in the document definition. 
•  String qualifierValue. This parameter is the value that must be in the qualifier 
column in order for the mapping of the first parameter to occur. 
You may also specify a Formatter to convert between the format of the data, as it occurs 
in the document, and the format of the data as required by the data store. See “Formatter 
Classes,” below. 
Here are the possible constructors for the PredicatedFieldElement class: 
public PredicatedFieldElement(String tagName, String columnName, 
    String qualifierName, String qualifierValue) 
public PredicatedFieldElement(String tagName, String columnName, 
Formatter formatter, String qualifierName, String qualifierValue) 
Example: 
In the following example of PredicatedFieldElement, the data element CreditHoldDate in 
the inbound document is mapped to the column CREDIT_HOLD_RELEASE_DT if the 
value of the tag mapped to the column CREDIT_HOLD_STATUS_CD is 0. An earlier 
new statement mapped the tag CreditHoldStatus to CREDIT_HOLD_STATUS_CD. 
This example includes a formatter to convert the value of CreditHoldDate before storing 
it in the database column. 
new FieldElement("CreditHoldStatus", "CREDIT_HOLD_STATUS_CD"), 
… 
new PredicatedFieldElement("CreditHoldDate", "CREDIT_HOLD_RELEASE_DT", 
 new SubStringFormatter(8),"CREDIT_HOLD_STATUS_CD","0") 










