Calculating the next milestone

You can direct Infor Public Sector to calculate which milestone will follow another milestone using a next milestone formula. For example, you could write a formula for a Finalized milestone that advances a block party application to a Permit Issued milestone or advances a parade application to a Pre-Issue milestone.

Next milestone formulas use the oUseApp object (an instance of the Hansen.CDR.Use.iUseApplication class) to set NextState to a string value that is the exact name of the milestone that follows. For more information about this object and for sample code, click the Information tab in the Formula Editor.

Examples

This formula advances the application to a Reviews milestone if the application is for a new construction or advances it to a Permit Issued milestone for any other work type.


If (oUseApp.WorkType.Code.ToUpper = "NEW") Then
  NextState = "Reviews"
Else
  NextState = "Permit Issued"
End If