The Generic Parser
has designed a generic parser that can handle field mapping from resume to Contact record from any provider. The provider is identified by the Configuration (TR1__Search_Match_Configuration__mdt) Custom Metadata Type.
When the Provider Type is , the relevant Parser and Provider API classes is called.
The idea of the generic parser is to avoid the use of multiple IF clauses that have hard-coded references to the XML Nodes names and Fields on the Contact object.
The generic parser iterates the list of records in the Candidate Mapping (TR1__Candidate_Mapping__mdt) Custom Metadata Type. Each record represents a field value that needs to be stored in and is fetched using an XPath expression. The generic parser employs the SObject methods – put( fieldname, object ) to place the value into the respective field on the contact record without hard-coding references.
Available Field Mapping
The generic parser currently supports field mapping to the following objects: Contact, Employment History, and Education History. The Object field on the Candidate Mapping Custom Metadata Type record captures the name of the Object for any field included in the mapping.
