Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KBizRules Class
Message
 
À
22/12/2000 23:33:33
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00456530
Message ID:
00456605
Vues:
29
>>I can send the ExecuteEvent method code of my ImportCompanyData object in a >few days if it will help. I just need to document it < g >.
>
>That might be helpful, if you get the chance.
>
>>
>>As far as business rules: I have not worked with them yet, but I think like >you do that they are primarily concerned with data validation, like:
>>
>>- You can't have an empty customer name.
>>- Make sure the customer's sate is in the states table.
>>- If a customer's credit limit is $500, and their purchase is $600, warn the >operator.
>
>The rules you mention... i like to group them in with data rules. Which seem to belong in kbizrules or in the data engine.
>

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.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform