For example, suppose you want a user to specify a state code for the US. There is a total of 676 two-letter combinations, but there are only 50 two-letter state codes. To assure data integrity, it is better if the user is allowed to chose one of only 50 states instead of entering any possible two-letter code.
When you configure a BPM object attribute with a set of valid values, the attribute is presented to the user as a list. The user must select one of the choices provided.
| Valid Values Setting | Description | Presented to User As |
|---|---|---|
| All | Any value within the bounds of the data type is accepted. This is the default setting. | Text field |
| Static List | One of a list of values is accepted. The list is set at design time. | Drop-down list |
| Dynamic Method | One of a list of values is accepted. The list is dynamically built by a method in run-time. | Drop-down list |
The dynamic method is more flexible because you can pull the information from a database. However, this tutorial uses a static list because it is easy to configure without writing any code.
To add a static list of valid values to an attribute: