Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KBizRules Class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00456530
Message ID:
00456606
Vues:
41
> Yeah, I'd put all that stuff in the kbizrules object(s). You're right, kbizrules are primary for data validation. Just about anything that you'd be tempted to put in valid() of a control probably belongs in the kbizrules. Things like calculations, setting credit ratings, etc. belong in your kbizobj.
>
> As far as event objects, I primarily use them when I have a bizobj that needs to coordinate with one or more other bizobjs. Actually, there are times where I will mix and match approaches. Sometimes I'll just call another business object directly from within an existing bizobj, other times I'll create an event object. It kind of depends on the situation (and my mood) ;-) Generally, if I'm having a problem deciding to which object a method might belong (and that method will need the help of other bizobjs), I'll create an event object for it.

I know what you mean. Drawing the boundry between Entity object and Event object has been difficult. I am trying to make my Entity objects only deal with data in the corresponding table. Anything else, I create an Event object.
Chris McCandless
Red Sky Software
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform