Often, a given piece of data may have a set of valid values much smaller than that allowed by the data type. For these cases, you can define a set of values that the user can select from.
For example, there are 676 two-letter combinations, but only 50 two-letter state codes in the US. To assure data integrity it is best if the user is allowed to chose one of the 50 states instead of entering any possible two-letter code. It is good practice to limit input to the set of valid values whenever this is possible.
BPM object attributes can be configured with a set of predefined valid values. When you do this, the attribute will be presented to the user as a drop-down list, rather than a field. Thus, the user will only be able to select from the choices provided.
| Valid Values Setting | Description | Presented 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 fixed 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. For example, you can pull the information from a database. The static list is easy to configure without writing any code, so here we use a static list. To add a static list of valid values to an attribute: