Configuration Examples (Cont.): MDMS Wrapper Model

The “wrapper” binds the sMash resource model to the MDM Server BObj, matching model attribute names to BObj xpaths.  This is the wrapper (represented in json like the resource model) for the TCRMPersonObj.  The sMash file editor insures correct json syntax, but I created this by typing it in manually.  In addition to attribute mapping information included in “public names”, the wrapper identifies the child BObjs of interest and points to the XML prototype for the BObj.  I’m not fully explaining the full format here.

/public/wrappers/mdmPerson.json:

{
“public_names”{
“Id”“path”“PartyId” },
“First Name”“path”“TCRMPersonNameBObj/GivenNameOne” },
“Last Name”“path”“TCRMPersonNameBObj/LastName” },
“Contact Method”“path”“TCRMPartyContactMethodBObj”“child”“party_contact_method” },
“Phone”“path”“TCRMPartyContactMethodBObj”“child”“party_contact_method”“type_filter”“1″ },
“Email”“path”“TCRMPartyContactMethodBObj”“child”“party_contact_method”“type_filter”“9″ },
“Birthdate”“path”“BirthDate” },
“Gender”“path”“GenderType” },
“Soc Sec No”“path”“TCRMPartyIdentificationBObj/IdentificationNumber” },
“Address Line 1″“path”“TCRMPartyAddressBObj/TCRMAddressBObj/AddressLineOne” },
“Address Line 2″“path”“TCRMPartyAddressBObj/TCRMAddressBObj/AddressLineTwo” },
“City”“path”“TCRMPartyAddressBObj/TCRMAddressBObj/City” },
“State ID”“path”“TCRMPartyAddressBObj/TCRMAddressBObj/ProvinceStateType” },
“State”“path”“TCRMPartyAddressBObj/TCRMAddressBObj/ProvinceStateValue” },
“Zip”“path”“TCRMPartyAddressBObj/TCRMAddressBObj/ZipPostalCode” },
“Country ID”“path”“TCRMPartyAddressBObj/TCRMAddressBObj/CountryType” },
“Country”“path”“TCRMPartyAddressBObj/TCRMAddressBObj/CountryValue” },
“Faves”“path”“TCRMPartyValueBObj”“child”“party_value” }
}
,
“children”{
“party_contact_method”“mdmPartyContactMethod”,
“party_value”“mdmPartyValue”
}
,
“xml”“TCRMPersonBObj”
}

Leave a Reply

You must be logged in to post a comment.