Constraints
|
Copyright 2008-2009 ManyDesigns srl. All rights reserved.
PurposeConstraints help you avoid that invalid data be entered in the system. Suppose you want to make sure that a string has exactly 10 characters long or that is conforms to a predefined format. Suppose that you want that a certain "expense" attribute is greater than zero and smaller than another attribute called "budget". These and many other scenarios are possible with constraints.You, as a modeler, define the rules of the constraints. The system then enforces those rules with all the data that the users enter. If a user enters data that break a constraint, the system interrupts the operation and prompts the user with a meaningful message. DetailsA constraint is a special kind of calculated attribute. To define a constraint you need to:
VisibilityYou will generally prefer to hide constraint attributes as an implementation detail without exposing them to regular users. To hide them, make sure their in name, in summary, and in details flags are unchecked.
Previous: Calculated attributes
Next: Advanced workflows |