Download presentation
Presentation is loading. Please wait.
Published byBrooke Reynolds Modified over 9 years ago
1
compfab compfab Information Organizer page 1 BUSINESS AT YOUR FINGERTIPS Business Object Framework BOF Overview Erik Gyllenswärd Mladen Kap
2
compfab compfab Information Organizer page 2 BUSINESS AT YOUR FINGERTIPS Business Object Framework, BOF BOF provides a number of concept to help model the real world in an expressive way. It also provides a design environment to help you to build applications using the concept and a runtime environment to execute and view applications. The information model supported by BOF is centered around concepts of, objects aspects roles relations views
3
compfab compfab Information Organizer page 3 BUSINESS AT YOUR FINGERTIPS Business object model Object - represent complex real-world entity; pump, valve, human, errend. Aspect - represent natural related part of an object functionality; map, man- ual, web camera, operator display. Relation - a powerful way to model connections to other objects; marrige, location structure, electrical structure. Role – an object can play different roles; wife, mother, employee. View, restrict visability and access. R Marrige relation Wife role Husband role A BO A A A A A Wife Husband Employee School Employee Football Family view Organization Ann Paul
4
compfab compfab Information Organizer page 4 BUSINESS AT YOUR FINGERTIPS Business object and aspects BOF objects are objects that represent complex real-world entities of interest to one or more application domains. A BOF object can be regarded as a container keeping related behavior of the object together. Different logical units of functionality is delegated to BOF aspects. Examples of BOF objects are organization, department, project, person, car, building, order, etc. A BO A A Pump User manual Maintenance data Wiring diagram A Operator display DS BO UI Busi- ness Data DS A UI
5
compfab compfab Information Organizer page 5 BUSINESS AT YOUR FINGERTIPS Relations and roles Paul A BO A Parenthood Child Husband R Marrige Wife BO A Ann Parent A RR Parenthood Parent A John Business functionality is often provided by related and cooperating business objects. To model and implement business applications a rich relationship concept must be provided. A relation ties two roles together. An object can play many roles. To move in-between objects typed relations are useful.
6
compfab compfab Information Organizer page 6 BUSINESS AT YOUR FINGERTIPS Presentation views A business object facilitates that all related information can be kept together. To be able to restrict visibility and accessibility the concept of views are provided. A family view shows all aspects and relations related to the family. A marriage view shows only aspects and relations related to the marriage. Family A BO A Parenthood Child Husband R Marrige Wife BO A Parent A RR Parenthood Parent A Family Paul Family Marrige Ann Family Marrige John
7
compfab compfab Information Organizer page 7 BUSINESS AT YOUR FINGERTIPS Object services An object has a number of system defined services e.g. delete object, view properties, add user defined services. A document or a Web Camera application can be added to the object and user services to activate the appropriate application can thus be added without programming. DS BO UI Busi- ness Data File Word UI File Web- Cam UI Set As Root Properties Query Change Services Create Aspect Create Relation Web Camera Help Delete
8
compfab compfab Information Organizer page 8 BUSINESS AT YOUR FINGERTIPS Example object services
9
compfab compfab Information Organizer page 9 BUSINESS AT YOUR FINGERTIPS Aspects A BOF aspects is a directory object representing a distinct aspect of information related to or behavior characteristic for a BOF object. This delegation of information or behavioral aspects to Aspects facilitates building BOF objects from components that often already exists in different parts of larger business systems. DS BO UI Aspect UI Busi- ness Data
10
compfab compfab Information Organizer page 10 BUSINESS AT YOUR FINGERTIPS New aspect type An aspect has a number of system defined services e.g. delete aspect, view properties, add user defined services. A new aspect type can be created without programming, e.g. a Web Camera aspect type. The Web Camera application, related documents and user services to activate appropriate applications can be added without programming. DS BO UI Asp. UI Busi- ness Data File Word UI File Web- Cam UI Relations Properties Camera Help Change Services Delete
11
compfab compfab Information Organizer page 11 BUSINESS AT YOUR FINGERTIPS New aspect implementation and type To participate in the Business Object Framework IBofAspect interface must be implemented. Object lifecycle suppport - AfterCreate, Initialize, BeforeDelete. Object activation support – OnActivate, OnChange, OnDeactivate. Get and set Name and get Type. DS BO DB File UI Asp. UI Busi- ness Data dll IADs IBofAspect
12
compfab compfab Information Organizer page 12 BUSINESS AT YOUR FINGERTIPS DB File IBofServiceProvider interface To be able to activate the aspect from the service menu IBofServiceProvider must be implemented. The MenuItems function is used to define new custom services in the menu. The Item function invokes a chosen service via an URL or progID. Count returns number of services. Add and Remove to configure new services at run-time. DS BO UI Asp. UI Busi- ness Data File Note- pad UI dll Relations Properties MyService Notepad Change Services Delete
13
compfab compfab Information Organizer page 13 BUSINESS AT YOUR FINGERTIPS DB File IADs interface The aspect can choose to store data either in AD or some other store. IADs interface does not have to be implemented, can access IADs within the the code when appropriate. The blob can be used via a propertybag Bag.WriteProperty "Picture", mPic mDso.Put("bofBlob", Bag.Contents) mDso.SetInfo Bag.Contents = mDso.Get("bofBlob") mPic = Bag.ReadProperty("Picture", "") DS BO UI Asp. UI Busi- ness Data File Note- pad UI dll
14
compfab compfab Information Organizer page 14 BUSINESS AT YOUR FINGERTIPS Object and aspect creation IBofSystem provides services to create and delete BofObjects. All objects are of a generic type and created in a default container. An object are mostly accessed via a view. Dim Sys As BOF.IBofSystem, Obj As BOF.IBofObject, Asp As BOF.IBofAspect Set Sys = BOFSYS.GetSystem() Set Obj = Sys.CreateObject(“Generic”, “MyObjectName”) IBofObject provides services to create and delete aspects. Get current view and and attach a relation. Set Asp = Obj.CreateAspect(“Generic”, “MyAspectName”)
15
compfab compfab Information Organizer page 15 BUSINESS AT YOUR FINGERTIPS View creation BOF views provide a way of structuring information about objects and their relations into ‘natural’ parts, which is meaningful to one or more categories of users. Dim MyView As BOF.IBofView, Rel As BOF.IBofRelation, MyViews As BOF.IBofViews MyViews = Sys.Views Set MyView = MyViews.Item(“MyPersonal1”) Set MyView = MyViews.Add(“MyPersonal2”) MyView = Obj.CurrentView
16
compfab compfab Information Organizer page 16 BUSINESS AT YOUR FINGERTIPS Relation creation and roles Business functionality is often provided by related and cooperating business objects. BOF relations can have different meaning, they are typed. A relation can be presented in different views. A generic relation is always presented in the view it is created. A relation connects two roles. Dim MyView As BOF.IbofView, MyRel As BOF.IBofRelation Set MyRel = MyView.CreateRelation(“Generic”) MyRel.Role(1).Attach MyObj1 MyRel.Role(2).Attach MyObj2
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.