Скачать презентацию
Идет загрузка презентации. Пожалуйста, подождите
Презентация была опубликована 9 лет назад пользователемЖанна Терёшкина
1 Object Orientation A Real World Success Story Chris Larson Director of Development, OneVue, Inc. Session 115 Alan Webb Sr. Solutions Engineer, Progress Software
2 © 2009 Progress Software Corporation. All rights reserved. 2 Geez – another Order Type. No Notice. A killer deadline.
3 © 2009 Progress Software Corporation. All rights reserved. 3 What I need from you Chris is a miracle.
4 © 2009 Progress Software Corporation. All rights reserved. 4 Hummm… I wonder if this stuff will work.
5 © 2009 Progress Software Corporation. All rights reserved. 5 I sure hope – for your sake kid – that OO doesnt turn into Oh No!!
6 © 2009 Progress Software Corporation. All rights reserved. Two weeks later… 6
7 © 2009 Progress Software Corporation. All rights reserved. 7 Chris This is so awesome. I Love You Man!
8 © 2009 Progress Software Corporation. All rights reserved. How Did Chris Do It? Most work already done. Tested and verified Focused only on new stuff Only had to test new features 8 OO to the rescue
9 © 2009 Progress Software Corporation. All rights reserved. How Did Chris Do It? 9 Object Orientation Makes It Easier And Faster To Create Robust And Reliable Applications OO to the rescue
10 © 2009 Progress Software Corporation. All rights reserved. In The Beginning… Started w/ clean slate Nucleus had worked together 2007 started 2008 began move to OO Retail expertise Progress experience Primary Retail Challenge = Cross Channel More ways To sell more stuff To more customers OneVues guiding vision = Cross Channel 10 A brief history
11 © 2009 Progress Software Corporation. All rights reserved. Makes all the difference Objects build on other objects Extra thought up front pays off in long run Truly understand business processes Right Objects Reuse Rapid Development Happy Users Architecture Matters 11 Poor Design = Poor Results
12 © 2009 Progress Software Corporation. All rights reserved. Model The Business Retailers objective: get stuff to customers Stuff 12
13 © 2009 Progress Software Corporation. All rights reserved. Model The Business Retailers objective: get stuff to customers Customers Stuff 13
14 © 2009 Progress Software Corporation. All rights reserved. Model The Business Retailers objective: get stuff to customers Customers Stuff 14
15 © 2009 Progress Software Corporation. All rights reserved. Model The Business Retailers objective: get stuff to customers Customers Stuff Sales Order 15
16 © 2009 Progress Software Corporation. All rights reserved. Key Retail Object Orders 16 Retail Order Channel Stuff Customer $ Special Stuff$ Government Stuff$ AMOUNT DUE$$$ Payments $$$
17 © 2009 Progress Software Corporation. All rights reserved. Key Retail Object Orders Which store / location? Website? Click from? Retail Order Channel Stuff Customer $ AMOUNT DUE$$$ Payments $$$ Special Stuff$ Government Stuff$ 17
18 © 2009 Progress Software Corporation. All rights reserved. Key Retail Object Orders Buying trends Demographic analysis Loyalty and rewards programs 18 Retail Order Channel Stuff Customer $ AMOUNT DUE$$$ Payments $$$ Special Stuff$ Government Stuff$
19 © 2009 Progress Software Corporation. All rights reserved. Key Retail Object Orders All types Promotions Sales Markdowns 19 Retail Order Channel Stuff Customer $ AMOUNT DUE$$$ Payments $$$ Special Stuff$ Government Stuff$
20 © 2009 Progress Software Corporation. All rights reserved. Key Retail Object Orders Shipping and handling Gift certificates Gift wrap Personalization 20 Retail Order Channel Stuff Customer $ AMOUNT DUE$$$ Payments $$$ Special Stuff$ Government Stuff$
21 © 2009 Progress Software Corporation. All rights reserved. Key Retail Object Orders Taxes By locality And by product type Prohibitions and restrictions Notices 21 Retail Order Channel Stuff Customer $ AMOUNT DUE$$$ Payments $$$ Special Stuff$ Government Stuff$
22 © 2009 Progress Software Corporation. All rights reserved. Key Retail Object Orders Easy (at least something is!!) 22 Retail Order Channel Stuff Customer $ AMOUNT DUE$$$ Payments $$$ Special Stuff$ Government Stuff$
23 © 2009 Progress Software Corporation. All rights reserved. Key Retail Object Orders All types Cash Checks Credit Cards Debit Cards Gift Certificates Coupons Vouchers Credits Multiple types on an order 23 Retail Order Channel Stuff Customer $ AMOUNT DUE$$$ Payments $$$ Special Stuff$ Government Stuff$
24 © 2009 Progress Software Corporation. All rights reserved. Key Retail Object Orders Backorders Split shipments Returns 24 Retail Order Channel Stuff Customer $ AMOUNT DUE$$$ Payments $$$ Special Stuff$ Government Stuff$
25 © 2009 Progress Software Corporation. All rights reserved. Lets Look Closer At Our Mobile Order Object 25
26 © 2009 Progress Software Corporation. All rights reserved. Before We Begin Review of some Object Oriented Principles Encapsulation Conceals functional detail using Accessors and Mutators. InterfacesDenotes a model or view of an object without (Abstraction)implementing it. InheritanceHow objects relate to each other. Polymorphism One name, Many forms 26
27 © 2009 Progress Software Corporation. All rights reserved. Our Modified OERA Architecture 27
28 © 2009 Progress Software Corporation. All rights reserved. Requirements Establish a new order Type of Mobile Only sell discontinued items Dont allow back orders Require Customer information Process the Order using only cash payments 28 Lets look at the new requirements
29 © 2009 Progress Software Corporation. All rights reserved. Current Object hierarchy 29 Lets look at our current object hierarchy
30 © 2009 Progress Software Corporation. All rights reserved. New Object Hierarchy 30 Extend our OrderBase and create OrderMobile
31 © 2009 Progress Software Corporation. All rights reserved. Lets start coding! Open eclipse and select New ABL Class 31
32 © 2009 Progress Software Corporation. All rights reserved. Create OrderMobile Class 32 Name it OrderMobile Inherit from OrderBase Implement IComponent
33 © 2009 Progress Software Corporation. All rights reserved. OrderMobile.cls 33 We now have the outline for our OrderMobile class
34 © 2009 Progress Software Corporation. All rights reserved. Implementing IComponent 34 Helps organize and structure complex data models. Enforces required elements of an object.
35 © 2009 Progress Software Corporation. All rights reserved. Initializing OrderMobile And Orderbase 35 Calling Super in the constructor
36 © 2009 Progress Software Corporation. All rights reserved. OrderBase Constructor 36
37 © 2009 Progress Software Corporation. All rights reserved. Lets Define The New Methods CreateOrder()- Establish a new order Type ValidateOrderData() - Only sell discontinued items - Dont allow back orders - Only Allow cash transactions. - Require Customer information ProcessOrder()- Process and complete the transaction 37
38 © 2009 Progress Software Corporation. All rights reserved. Override CreateOrder() 38 Call SUPER:CreateOrder() Assign OrderType to Mobile
39 © 2009 Progress Software Corporation. All rights reserved. Override ValidateOrderData() Call SUPER:ValidateOrderData() Add OrderMobile specific validations. 39
40 © 2009 Progress Software Corporation. All rights reserved. ProcessOrder() 40 Utilize the base order processing. Pass THIS-OBJECT to be processed.
41 © 2009 Progress Software Corporation. All rights reserved. Thats It, were ready to Proxy A Quick Review Inherited SaveOrder() from OrderBase Overrided CreateOrder() and ValidateOrder() Add our custom ProcessOrder() method 41
42 © 2009 Progress Software Corporation. All rights reserved. Summary Small team. Industry knowledge. Clear vision Progress and other technologies. Modified OERA Solid Architecture Well designed objects OO Works!! 42
43 Object Orientation A Real World Success Story Chris Larson Director of Development, OneVue, Inc. Session 115 Alan Webb Sr. Solutions Engineer, Progress Software
Еще похожие презентации в нашем архиве:
© 2024 MyShared Inc.
All rights reserved.