Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executants and Transactions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00658651
Message ID:
00659309
Vues:
25
>>
>>2. I already have an Event Object performing all kind of data stuff with a >bunch of BizObjs. It has Start and Endtransaction Methods wich I would then >Redirect to the executant ?
>>
>>3. If I start a Transaction on the Executant, will all BizObj.Save() >Methods then run in this transaction ?
>>
>>Question1:
>>OR: Have I got to get all EventObject Code in the Executant ? That would be >a bit frustrating when you want to be able to swich back and forward and a >real big part of Business Logik is placed in Event Objects.
>
>OK knowing this I believe that 2. and 3. will not work they expected way, because the BizObj wont get the same executant.
>

I would think (as in, I don't know for sure) #2 would work OK. Inside your event you call the Executant and have it start a new transaction. Then you call each of your bizobjs to handle whatever they need to handle. Once all of the bizobjs have completed successfully, you call EndTransaction() in the Executant. All of the business objects updates should be wrapped up inside the transaction started by your Event object. Each of the individual bizobjs you call will wrap their updates inside of another transaction. I don't think it matters that they'll each use their own Executant (since they should share the same connection and login anyway).
-Paul

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

Click here to load this message in the networking platform