Stuart,
>I have set up a businessProcess class and I want to be able to iterate through all the business object in the businessProcess. How can I do this?
> I have set my business objects in DefineParticipatingObjects, and tried GetParticipatingObjects but the count on that says 0.
If you want to use the GetParticipatingObjects() method you need to add them to the ParticipatingObjects collection in the DefineParticipatingObjects() method. For example:
protected override void DefineParticipatingObjects()
{
this.Media = (Media)this.RegisterBizObj(new Media());
this.ParticipatingObjectCollection.Add(this.Media);
}
Typically this isn't necessary since your business process object usually contains class-level variables that hold references to participating entities.
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com