Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bizrules
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00599033
Message ID:
00599057
Vues:
15
>Jim,
>
>>A student bizobj has a child object called guardian object. The student bizobj has a rule that if the student is under age 18, there must be at least one guardian. The guardian object has a rule that if the student is under 18, one guardian must be a contract buyer. So you see, two way communication between the bizobjs during rules checking is necessary. Since I have never had to deal with this scenario, I was hoping someone could offer some suggestions.
>
>You could create a method in the Student business object called "IsGuardianPresent()" (or something similar). This method could call a corresponding method on the Guardian object, passing the student id as a parameter. This method can be called from the Student business rule object as follows:
>
>This.oBizObj.IsGuardianPresent()
>
>You could also create a method in the Guardian object called "IsStudentUnder16()". This method could call a corresponding method on the Student object, passing the student id as a parameter. This method can be called from the Guardian business rule object.
>
>In each case, the two methods can either use an existing reference to the Guardian or Student object, or create a new instance as necessary.
>
>Hope this helps!

Kevin,

I thought about doing that, but if the data is not saved, creating a new instance won't work. The problem is further complicated when moving to COM. How do I enusre that the current instance is used for the bizobjs?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform