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 liquor license to an Issued milestone or advances a kennel license to a Pre-Issued milestone.

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

Example

This formula advances a license to a PreView milestone if its Other was specified for its type of business and advances a license to a Review milestone for any other type of business. Note that the formula uses the enumeration value from the LicenseBusinessType enumeration instead of the business type name. If you have the correct access rights, you can view this enumeration using the Schema Manager.


NextState = "Review"
If oLicenseApp.TypeOfBusiness = 5 Then
  NextState = "PreReview"
End If