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

Click here to load this message in the networking platform