Calculating which inspection assignment group to use
You can use an assignment group formula to calculate which inspection assignment group Infor Public Sector will use to automatically assign inspectors based on information recorded in an application, such as its location. For example, you could write a formula that adds a Residential assignment group to any electrical, mechanical, or footing inspections for a residential construction. When an inspection is added to a residential application, Infor Public Sector looks for the specific assignment area value defined in the assignment group, such as a postal code or parcel ID. If found, Infor Public Sector assigns the group's inspector to the inspection.
You specify an assignment group formula for an inspection type when you define the inspection type. You must specify an assignment group formula for an inspection type if you want Infor Public Sector to automatically assign inspectors to inspections of that type. You define assignment groups using Inspection Assignment Group. You then create the assignments for those groups using Inspection Assignment.
Assignment group formulas use the
oPlanningApp
object (an instance of the
Hansen.CDR.Planning.iPlanningApplication
class) to set
AssignmentGroup
to a string value that is the exact name
of the assignment group you want. For more information about this object and
for sample code, click the
Information tab in the Formula
Editor.