Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Rules question
Message
De
14/02/2003 07:12:52
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00752606
Message ID:
00753138
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform