Mapping annotation fields

After you've defined your annotation fields, you can map them to fields in the Infor Public Sector database.

Most importantly, you can map the H8SUBTYPE attribute to different fields for different types of records. A subtype is a generic concept that maps to different properties depending on the record type. For example, the subtype for a building inspection would be the inspection type, and the subtype for an asset would be the unit type.

To set up mappings, add the MAPPINGS node as a child of the ANNOTATIONS node.

To add a subtype mapping, first add a child Mappings node to the MAPPINGS node. For the name attribute of the Mappings node, specify the moniker of the correct object, such as Hansen.CRM.ServiceRequest for service requests.

Next, add a child FieldMap node to the Mappings node. For the name attribute, specify the name of the field for which you're defining the mapping, such as H8SUBTYPE. This must match the name of a field defined under the FIELDINFOS node. For the template attribute, specify a property of the business object specified for the parent Mappings node. The property should be enclosed in brackets, such as [RequestType.RequestType].

Some sample subtype mappings are shown below.

Parcels:

<Mappings name="Hansen.Property.Parcel">
   <FieldMap name="H8SUBTYPE" template="[ParcelType.Code]" />
</Mappings>

Properties:

<Mappings name="Hansen.Property.PropertyInformation">
   <FieldMap name="H8SUBTYPE" template="[PropertyType.Code]" />
</Mappings>

Assets:

<Mappings name="Hansen.AssetManagement.">
   <FieldMap name="H8SUBTYPE" template="[UnitType.Code]" />
</Mappings>

Service requests:

<Mappings name="Hansen.CRM.ServiceRequest">
   <FieldMap name="H8SUBTYPE" template="[RequestType.RequestType]" />
</Mappings>

Work orders:

<Mappings name="Hansen.WorkManagement.WorkOrder">
   <FieldMap name="H8SUBTYPE" template="[Activity.ActivityCode]" />
</Mappings>

Building applications:

<Mappings name="Hansen.CDR.Building.BuildingApplication">
   <FieldMap name="H8SUBTYPE" template="[ApplicationType.ApplicationType]" />
</Mappings>

Building inspections:

<Mappings name="Hansen.CDR.Building.Inspection">
   <FieldMap name="H8SUBTYPE" template="[InspectionType.Code]" />
</Mappings>

Building reviews:

<Mappings name="Hansen.CDR.Building.Review">
   <FieldMap name="H8SUBTYPE" template="[ReviewType.Code]" />
</Mappings>

Business licenses:

<Mappings name="Hansen.CDR.BusinessLicense.LicenseApplication ">
   <FieldMap name="H8SUBTYPE" template="[LicenseType.LicenseType]" />
</Mappings>

License inspections:

<Mappings name="Hansen.CDR.BusinessLicense.Inspection">
   <FieldMap name="H8SUBTYPE" template="[InspectionType.Code]" />
</Mappings>

License reviews:

<Mappings name="Hansen.CDR.BusinessLicense.Review">
   <FieldMap name="H8SUBTYPE" template="[ReviewType.Code]" />
</Mappings>

Cases:

<Mappings name="Hansen.CDR.CodeEnforcement.Case">
   <FieldMap name="H8SUBTYPE" template="[CaseType.CaseType]" />
</Mappings>

Case inspections:

<Mappings name="Hansen.CDR.CodeEnforcement.Inspection">
   <FieldMap name="H8SUBTYPE" template="[InspectionType.Code]" />
</Mappings>

Case reviews:

<Mappings name="Hansen.CDR.CodeEnforcement.Review">
   <FieldMap name="H8SUBTYPE" template="[ReviewType.Code]" />
</Mappings>