Friday 27 June 2014

How does the user validation works for properties in PRPC :

A property value that is supplied by user may be valid or invalid. Pages containing one or more invalid values can not be saved to the database. When process commander detects an invalid value, it adds a message to the page to mark this discovery.
Two important points here are,
        1. The invalid values remain on the clipboard
        2. The user is not automatically notified of the invalid value

Five kinds of rules basically support the user validation:
1. Property Rules ( Rule-Obj-Property ) : It can serve the purpose of validation in 3 ways
a. Table edits constrain the allowable values.
b. Type of property will restrict the format
c. Max allowable length
2. Edit Input values ( Rule-Edit-Input ) : These can convert the user entered input values into an internal format
3. Edit Validate Rules ( Rule-Edit-Validate ) : these are custom java routine functions which can further test the format of the input
4. Field Values ( Rule-Obj-FiledValue ) : These provide configurable list of acceptable values
5. Multii property Validation rules (Rule-Obj-Validate): These rules are used to apply multiple edit validate rules to act at once. If a value fails any of these validations, the system notes this in a message associated with the property or with the clipboard page containing the property

1 comment: