Try OpenEdge Now
skip to main content
User's Guide
Using dataslots : Creating user-defined dataslots : Defining the dataslot format : Specifying validation at the dataslot level
 
Specifying validation at the dataslot level
Business Process Modeler introduces a new validation framework that enables you to specify validation at the dataslot level. You can now associate validation rules with a CHARACTER, a INTEGER, or a DATETIMETZ dataslot type.
Table 30 lists and describes the dataslot validation rules and the dataslot type for which they are available.
Table 30. Validation Rules for User-Defined Dataslots
Name
Description
Length
Available only for CHARACTER dataslots. Enter a Minimum Length and a Maximum Length for the string text.
Number validation
Available for CHARACTER and INTEGER dataslots. Select the Number type (Integer or Float) and enter the minimum value and the maximum value in the respective text boxes.
Decimal validation
Available for CHARACTER, DECIMAL, and Number dataslots. Enter the number of digits to the left and to the right of the decimal point in the respective text boxes.
Decimal validation (advanced)
Available for CHARACTER, DECIMAL, and Number dataslots. In addition to the Decimal validation rule, this rule enables you to set a range of digits allowed to the left and to the right of the decimal point.
IP Address
Available only for CHARACTER dataslots. Define the Minimum Port Allowed or the Maximum Port Allowed. Default values are 0 for Minimum and 65535 for Maximum.
U.S. Social Security Number
Available only for CHARACTER dataslots. The predefined format (at runtime) is xxx-xx-xxxx.
Currency
Available only for CHARACTER dataslots. You can modify the Currency Character (default is “$”), Grouping Character (default is “,”) and Decimal character (default is “.”).
U.S. Zip Code
Available only for CHARACTER dataslots. You can modify the Separator (default is “-”). You need to enter a 5-digit or 9-digit zip code at runtime. For the 9-digit zip code, the predefined format (at runtime) is xxxxx-xxxx.
U.S. Style PhoneNo.
Available only for CHARACTER dataslots. Select either Loose or Strict format.
*For Strict format, you need to enter the phone number (at runtime) as (xxx) xxx-xxxx or (xxx) xxx xxxx.
*For Loose format, you can enter a phone number (at runtime) without the brackets or hyphen or without both.
Email Address
Available only for CHARACTER dataslots. The format is predefined.
URL
Available only for CHARACTER dataslots. Select any of the allowed protocols (http, https, fttp, or all) and whether the Query strings are allowed.
Date
Available only for DATETIME-TZ dataslots. The format is predefined.
To assign a validation rule to a dataslot:
1. Select the CHARACTER, INTEGER, INT64 , or DATETIMETZ dataslot in the All Dataslots section.
2. From the Default Format section, click Browse beside the Validation box.
The Validation dialog box appears.
3. Select any of the available rules from the Validation Rule drop-down list. Depending on the validation rule you selected, you may have to enter additional information, as described in Table 30.
Note: If you want to apply any of the decimal validation rules to a INTEGER dataslot using the Decimal validation option in the Validation Rule drop-down list, make sure that you have selected either the Double or Decimal options in the Storage section.
4. Click OK to save the changes you made to the dataslot properties.