Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KBizRules Class
Message
 
To
22/12/2000 23:33:33
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00456530
Message ID:
00456605
Views:
25
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform