lesson 5 modeling object structures. simplify your business modeling object structures 2 lesson 5...
TRANSCRIPT
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
2
Lesson 5 Overview Lesson 5 Overview
– Analyze users and tasks to decide what parts of the application to expose
– Create logical groupings
– Map objects
– Select the Session Model
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
3
Where we are in the processWhere we are in the process
Covered
Not Covered
Color Key:
Build 4GLapplication
Set up JSECompiler-code
Set up WSA
UsersTasksCode
DefineClient
Interface
BuildProject
file
GenerateDefinitions
DeployDefinitions
ClientCoding
Connectand Test
Debug
Phase 1: Set Up Servers
Phase 2: Create Web Service Definitions
Phase 3: Deploy, Test and Debug
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
4
What will the users need to do?What will the users need to do?
TasksSales Rep
Sales Manager
Find customer name from customer number
X X
Find customer number from customer name
X X
Find total order dollars X X
Find total number of orders X X
Get order details X
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
5
Match tasks with 4GL codeMatch tasks with 4GL code
Tasks 4GL codeFind customer name from customer number
FindCustomerByNum.r
Find customer number from customer name
FindCustomerByName.r
Find total order dollars GetTotalOrdersByDollar
(function within OrderInfo.r)
Find total number of orders
GetTotalOrdersByNumber
(function within OrderInfo.r)
Get order details GetOrderDetails
(function within OrderInfo.r)
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
6
Only I/O processes need be exposedOnly I/O processes need be exposed
FindCustomer ConvertCurrency
CalculateTotal$Due
ResetCreditLimits
AddCustomer
DeleteCustomer
PriceLookup
UI logic Business logic
AppServer application
Open clientaccess needed
No open clientaccess needed
.
.
..
.
.
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
7
Lab 5-1: Users-Tasks-CodeLab 5-1: Users-Tasks-Code
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
8
Open Client Object ModelOpen Client Object Model
AppObjectAppServer Connection
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
9
Open Client Object ModelOpen Client Object Model
SubAppObject2
AppObject
SubAppObject1
AppServer Connection
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
10
Open Client Object ModelOpen Client Object Model
SubAppObject2
AppObject
SubAppObject1
ProcObject1
AppServer Connection
ProcObject2
ProcObject3
ProcObject4
internal procedure
internal function
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
11
Open Client Object ModelOpen Client Object Model
SubAppObject2
AppObject
SubAppObject1
ProcObject1
AppServer Connection
ProcedureX
ProcedureY
ProcObject2
ProcObject3
ProcObject4
internal procedure
internal function
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
12
Simplest possible exampleSimplest possible example
FindCustomerByName.r
CustomerSearchAppServer Connection
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
13
Complex exampleComplex example
NewOrders
OrderMaint
OldOrders
AddOrder.r
AppServer Connection
DeleteOrder.r
CheckOpenOrders.r
FindOrphans.r CreditCheck.r
AddCustomer.r
GetItemNumber.r
CheckName()
GetCustData()
PostNewCust()
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
14
Open Client Interface for OrderInfoOpen Client Interface for OrderInfo
OrderInfoAppServer Connection
FindCustomerByName.r
FindCustomerByNum.r
CustomerOrder.r
GetTotalOrdersByNumber()
GetTotalDollarsByNumber()
GetOrderDetails()
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
15
Session Model = ManagedSession Model = Managed
Persistent
Connection
AppServer
Web Services
Client
AppObject
State-reset
State-aware
Stateless
WSA
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
16
Session Model = FreeSession Model = Free
AppServer
Web Services
Client
AppObject
State-free
Multiple
Non-persistent
Connections
WSA
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
17
Open Client Interface for OrderInfoOpen Client Interface for OrderInfo
OrderInfoAppServer Connection
FindCustomerByName.r
FindCustomerByNum.r
CustomerOrder.r
GetTotalOrdersByDollar()
GetTotalDollarsByNumber()
GetOrderDetails()
Sim
plify
you
r bu
sin
ess
Sim
plify
you
r bu
sin
ess
Modeling Object Structures
18
Lab 5-2: Object Mapping and Session ModelLab 5-2: Object Mapping and Session Model