Examining Auto-Generated Validation for Age Field

In this task you will examine an auto-generated validation script and edit its error message.

Form fields, such as the Age field, that are auto-generated from user task parameters that are themselves based on Integer Number data fields include a validation script that checks that the runtime input is a number. The auto-generated script also checks that the value is not longer than 3 digits. The allowed length is based on the length property of the data field from which the control is generated.

Procedure

  1. Select the Customer Age data field in the Project Explorer under the process package for ProcessWithNoForms.
    Find Date Field CustAge
  2. In the Properties view, click the arrow next to References to see which user tasks reference the data fields.

    Notice the properties of the data field, including the Length property (3 digits). The Properties view also shows that the data field is used by the Capture Claim user task.

    The customer age property was set when data fields were added as parameters to the user task, a step that was performed for you when the business process was created. The script is set by default to be executed when the form is submitted.