Invoke validation in a job wizard step

About this task

These steps walk through the process of invoking a static validation method from a job wizard step. Specifically, it illustrates how to link the various Gosu validation classes and methods to the Vehicles step in the Commercial Auto Submission wizard. The page fails a validation check because there is no value set for the Length of Lease/Rental (months).

Procedure

  1. Start a Commercial Auto submission. In these steps, create the submission from the Wright Construction account in sample data.
  2. On the Commercial Auto Line screen, enter the following:
    OptionDescription
    Product Commercial Auto
    Fleet Fewer than 10 units
  3. Advance to Vehicles and click Create Vehicle.
  4. Fill in all required fields:
    OptionDescription
    Garaged At 846 Yount Ln., Hollywood, CA
    Vehicle Type Passenger Vehicles
    VIN abc
    Cost 9000
    Class 0423
    Leased or Rented Yes
    Length of Lease/Rental (months) <none>6 months or greaterLess than 6 months Do not enter a value
  5. Click OK.
    In the Validation Results panel, PolicyCenter displays an error message that length of lease is required.

What to do next

Trace the validation path in PCF files in Studio.