OFBiz Basic Technical Course Outline
Written By: David E. Jones
Founders and Lead Architects: David E. Jones & Andy Zeneski
Last Updated: January 4th, 2003
- Length: 2 Days
- Cost: $1200
Day 1: Architecture, Configuration & Deployment Overview and a Simple Example
Architecture Overview
Model-Controller-View Pattern (an
old story with a new name)
Lots of Controllers
Applying the Controller Pattern
Data Level Controller (Entity
Engine)
Logic Level Controller (Service
Engine)
Web User Interface Level
Controller (Control Servlet, Regions Framework, etc)
The Model goes in the Database
The View is what the user
interacts with
Everything else follows from
those, and the only trick is to do it efficiently for initial
implementation and maintenance.
Data Flow Between Components
Request from Browser
Control Servlet Called
Request Looked Up
Security Checked (encryption,
authentication)
Event Called (if defined)
Service Definition Looked Up
Simple Method Called As a
Service
Handle Data Coming In
Look Up Information From
Database
Save Information to Database
Response Chosen and Called
View Looked Up
Region Looked Up
Template Called, Sections
Filled In
Data Looked Up (directly
through the Entity Engine or through a service)
Configuration & Deployment
Overview
Choosing and Setting Up a
Database
Choosing and Setting Up an
Application Server
OFBiz Configuration
entityengine.xml
Transaction Manager Setup
Database Setup
serviceengine.xml
debug.properties
Other Configuration Files
Beginning With the End in Mind
What to build?
Data (Entity) Layer
Define Entities (configure data
level controller)
Logic (Service) Layer
Define Services (configure logic
level controller)
Implement Services
User Interface Layer
Configure Web User Interface
Level Controllers
Define Web Requests
(controller.xml)
Simple Request
Requests with an Event
implemented as a Service
Define Web Views
(controller.xml)
Define View Regions
(regions.xml)
Create Web User Interfaces
Create a Region Template JSP
Create a Header JSP
Create an Editing JSP
Create a Listing JSP
Throwing a Wrench in the Works
Adding a New Field
Change the Entity Definition
Change the Service Definition
Add to the Listing JSP (if
needed)
Add to the Editing JSP
Questions and Feedback
Day 2: Data, Logic & Applications
The OFBiz Data Model (Common Data
Components)
Data Model Patterns
Extensibility Pattern
Types
Attributes
Entity Relationships
Effective Dating
Data Model Packages
Common
Enumeration, Status,
TimePeriod, etc.
UserLogin, Security
Content
Party
Product
Order
Marketing
Accounting
Shipment
Human Resources
Work Effort
The OFBiz Common Logic Components
Parallels the Data Model Package
Organization
Services, Events and Workers
The OFBiz Applications
WebTools
Content Manager
Party Manager
Marketing Manager
Catalog Manager
Facility Manager
Order Manager
Accounting Manager
WorkEffort Manager