Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Rules question
Message
From
14/02/2003 07:12:52
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00752606
Message ID:
00753138
Views:
12
>Why not? A bussines rule can be composed for a lot of sub-rules. For example, if you have a bussines rule validator for a client, this rules must met:
>
>1- ID must exist
>2- ID Must have this format...
>3- Birthdate must be in this format...
>4- Must create a credit account only if the age is 18+
>5- Etc...
>
>And maybe specific validator for each common rule (empty/no empty, regular expresion match, type validator and pure bussines validator) must run and return true to the main bussines rule validator...

What about returning strings like "M" or "N", if I have a rule that needs to identify what the "type" of a record should be, is it ok for the rule to return that, ie:
If ThisRecordIsAType
     RETURN "A"
ELSE
     RETURN "B"
ENDIF
Thanks
Kev
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform