Example 2: Validation rules
Validation rules are used to confirm that a field value conforms to a supported format.
The Profiler and Verify task profiles both include the Validate ruleset. In the TravelDocs application,the Validate ruleset includes a rule that is called Validate Date, which returns True if a field value conforms to one of the supported date formats.
If you select the Validate Date rule and click Sync DCO View with Ruleset View, Datacap Studio expands the document hierarchy to show you which objects are associated with the rule.
In the TravelDocs application, the Validate Date rule is associated with the Arrival_Date field and Departure_Date field on pages of type Room_Receipt. This rule runs whenever Datacap processes an Arrival_Date field or Departure_Date field on a page of type Room_Receipt while it runs the Profiler or Verify task profile.