Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Process
Message
From
22/02/2011 12:18:09
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01501252
Message ID:
01501281
Views:
37
Thanks Bob,

so my code should look like this?
        protected override void DefineParticipatingObjects()
        {
            this.oPolicyHeader = (PolicyHeader)this.RegisterBizObj(new PolicyHeader());
            this.oPolicy = (Policy)this.RegisterBizObj(new Policy());
            this.oPolicyLoan = (PolicyLoan)this.RegisterBizObj(new PolicyLoan());
            this.oReceipt = (Receipt)this.RegisterBizObj(new Receipt());
            this.oReceiptDetail = (ReceiptDetail)this.RegisterBizObj(new ReceiptDetail());

            this.oPolicyHeader.RegisterChildBizObj(this.oPolicy);
            this.oPolicyHeader.RegisterChildBizObj(this.oPolicyLoan);
            this.oPolicyHeader.RegisterChildBizObj(this.oReceipt);
            this.oReceipt.RegisterChildBizObj(this.oReceiptDetail);
        }
Then when I want to save I just do:
mmSaveDataResult result = oPolicyHeader.SaveEntity();
How do I decide if I want to call SaveDataSet or SaveEntity or something else?


>Frank,
>
>There is no 'Save' of the Business Process. Think of the Business Process object as an object where multiple Business Objects are needed. Your goal basically is to create method(s) to do work that require the use of many Business objects. You can also register business objects as children of other business objects by calling the RegisterChildBizObj method in the DefineParticipatingObjects method.
>
>HTH
>
>
>>Hi,
>>
>>using MM.NET 3.6, C#, VS 2008, ASP.NET.
>>
>>I'm working on a business process and struggling a little with getting things right.
>>
>>This is a daily process that runs on an Insurance Administration system. It checks each active (in force) policy:
>>
>>1. check if a premium is due within a certain number of days, create the reminder if it is
>>
>>2. check if a premium payment is late, if so create late notice
>>
>>3. check if a policy is lapsed, if so, see if a payment can be taken from the cash value (if so create a Receipt and a Policy Loan), if not create a lapse notice.
>>
>>So the BOs involved here are:
>>
>>PolicyHeader
>>Policy
>>PolicyLoan
>>Receipt
>>ReceiptDetail
>>
>>and I RegisterBizObj these in the DefineParticipatingObjects()
>>
>>Is there a way to specify parent and child biz objects? Or does that not matter here?
>>
>>What I do next is get an entity list of all the active PolicyHeader Entities and process each one checking if premium is due, etc.
>>
>>In this processing I change entity values and add in new PolicyLoans or Receipts as needed. Do I then call a business process save method, or save each individual entity?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform