Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KBizRules Class
Message
 
À
22/12/2000 18:57:38
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00456530
Message ID:
00456544
Vues:
25
>I'm curious about where I should be placing my business rules. What should go in the KBizRules subclasses, and what should go in the KBizObj subclasses?
>
>KBizRules seems clearly setup to handle data validation type rules. But what about other business processes like doing a credit check, or importing a data file? Should these rules be in the business object or in the business rules object and why?

I just started with Mere Mortals and had the same problem you're having. What I did is create an event object to handle the import of data. The event object instantiates the entity objects (my entity objects map 1-1 with my tables) on Init, then those entity object collaborate in the ExecuteEvent method.

I posted a message here a week or two ago about this, and Kevin said that was the correct way to go. Which in religious terms, means it has been blessed. < g >
Chris McCandless
Red Sky Software
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform