Calculating whether to add a follow-up inspection

You can direct Infor Public Sector to calculate whether a follow-up inspection is required for a case using a Follow-up Inspection Condition formula. A follow-up inspection follows a current inspection after a set amount of time has passed, typically independent of the current inspection's results. For example, you could write a formula that adds a follow-up inspection to a nuisance case to ensure that a citizen remains in compliance. You specify a Follow-up Inspection Condition formula for a follow-up inspection using Inspection Result Code.

Follow-up Inspection Condition formulas for follow-up inspections use the oCase object (an instance of the Hansen.CDR.CodeEnforcement.iCase class) to set AddOnCondition to either True or False. If the formula returns True, Infor Public Sector creates a follow-up inspection. If the formula returns False, Infor Public Sector doesn't create the follow-up inspection. For more information about this object and for sample code, click the Information tab in the Formula Editor.

Example

This formula adds a follow-up inspection if the application has a high priority.

AddOnCondition = False
	If oCase.Priority.Code = "HIGH" Then
AddOnCondition = True
	End If