SlideShare una empresa de Scribd logo
1 de 26
Descargar para leer sin conexión
Introduction to
            Open Source ERP
           for Java Developers
     (Compiere, ADempiere and Openbravo)

Presented by:
Chuck Boecking from Trek Global
512.850.6068
Note: If you find this presentation helpful or if you have recommendations, please
reach out and let me know. Thanks!
Why a Java Developer Should Care
● Open Source ERP is approaching the tipping
  point of business acceptance.
● This tipping point gives the Java developers
  more freedom and flexibility when adopting
  platforms to solve wide-scale business
  problems.
● A single company-wide open source system
  gives developers more resources to drive
  and change business.
Interesting Points
● Compiere, ADempiere and OpenBravo are
  mature and stable solutions for managing
  goods and services in enterprises from
  $50M to $500M in gross revenue.
● Discussion topics will include architecture,
  application, performance tuning and war
  stories.
What is ERP?
ERP or Enterprise Resource Planning is a
single application that brings many common
organizational features into a single package.

Features include:
Accounting (GL, AP, AR)   Inventory Management       CRM (Customer Management


Receiving                 Purchasing (Order)         Fulfillment and Shipping
                          Management

Product Management        Sales (Order) Management   Manufacturing


Customer Management       Vendor Management          Service Management
Case Studies Worth Reading
Complex inspection and wholesale distribution
● 120 users across many countries and
  multiple financial entities
● Why notable: extensive customization

High volume wholesale and retail distribution
● 300 concurrent users shipping 10M units per
  month across 140K order lines
● Why notable: high volume
Technology Stack
● Java SE
● Tomcat and JBoss
● Model Driven Architecture - application
  dictionary
● zk WebUI and Java Swing
● PostgreSQL DB and Oracle DB
● 2Pack Release Management

Notable: supports end-to-end license-free
usage for companies with up to 500 concurrent
users.
ADempiere Statistics
● Just under 3000 classes w/o including auto-
  generated model classes
● About 800 tables
● Created in sf.net in 2006 as a fork from
  Compiere
● Historically one of sf.net's most active
  projects
Common Developer Entry Points
Developer hooks for implementing logic and
automation:
● Callout - based on user interactions with UI.
● Model - based on interaction with
  persistence layer.
● Processes - based on users deliberately
  pressing a button or invoking a menu action.

Other: Context - helps control visibility and
default values and is also accessible from code
almost anywhere.
Callout
package org.adempiere.callout;

import java.util.Properties;

import org.compiere.model.CalloutEngine;
import org.compiere.model.GridField;
import org.compiere.model.GridTab;
import org.compiere.util.AdempiereSystemError;
import org.compiere.util.Env;

public class SimpleCallout extends CalloutEngine {

public String test(Properties ctx, int windowNo, GridTab mTab, GridField mField,
Object value) throws AdempiereSystemError {

 // First get value
 Price = ((BigDecimal)mTab.getValue("Price"));

 // do some calculations
  BigDecimal Total = Qty.multiply(Price);

 // Set value back to column field
 mTab.setValue("Total", Total);

  return "this is a return string";
 }
}
Source: http://www.adempiere.com/Callout
Model
package adempiere.model;
import org.compiere.model.X_XX_Material;
public class MMaterial extends X_XX_Material {
        /** Create & Load existing Persistent Object */
        public MMaterial(Properties ctx, int XX_Material_ID, String trxName) {
               super(ctx, XX_Material_ID, trxName);
               // other initializations here
        }

       /** Create & Load existing Persistent Object.         */
       public MMaterial(Properties ctx, ResultSet rs, String trxName) {
              super(ctx, rs, trxName);
              // other initializations here
       }

       /** [OPTIONAL] Called before Save for Pre-Save Operation.           */
       protected boolean beforeSave(boolean newRecord)
       {
              return true;
       }
       /** ... afterSave(), getters, setters, convenience methods */
}


Example: http://www.adempiere.com/NewWindow
Process
package org.compiere.process;
public class TemplateProcess extends SvrProcess {
        private PO record;

      @Override
      protected void prepare() {
             for ( ProcessInfoParameter para : getParameter())
             { ...handle parameters...
             }
             // you can also retrieve the id of the current record for processes called from a window
             int recordId = getRecord_ID();
      }

      @Override
      protected String doIt() throws Exception {

             /* Commonly the doIt method firstly do some validations on the parameters
                and throws AdempiereUserException or AdempiereSystemException if errors found */

             return "A message to the user (indicating success - failures must throw Exceptions)";
      }

      /** Post process actions (outside trx). */
      @Override
      protected void postProcess(boolean success) {
              if (success) {} else { }
      }

}
http://www.adempiere.com/Process
Context
int currole_id = Env.getContextAsInt(ctx, "#AD_Role_ID");
2Pack Environment Migration
http://www.adempiere.com/2Pack
                                                                 Simple
                                                               Environment
                                                               Management
                                 Prod
 Complex
Environment                                                       Prod
Management
                     Stage 1            Stage 2

                                                                  Dev

              QA1                QA2              QA3




   Dev1               Dev2              Dev3            Dev4
Resources
Development introduction
http://www.adempiere.com/Development




End-to-end development example http://www.adempiere.
com/How_to_create_a_complete_new_module_in_ADempiere




Creating a customization environment
http://www.adempiere.com/Create_your_ADempiere_customization_environment
War Stories
Complex: CSI inspection

Volume: 10M units from worldwide distribution

eCommerce: 3 webstores => 1K shipments/day

Project Management: Time tracking
Chuck Boecking
●   Started with Compiere in 2003
●   Open Source ERP 70 to 90% since 2006
●   Professional educator and integrator
●   Wholesale distribution and assembly
    specialty

Chuck Boecking
512.850.6068
cboecking@trekglobal.com
Open Source ERP Technologies for Java Developers
Open Source ERP Technologies for Java Developers
Open Source ERP Technologies for Java Developers
Open Source ERP Technologies for Java Developers
Open Source ERP Technologies for Java Developers
Open Source ERP Technologies for Java Developers
Open Source ERP Technologies for Java Developers
Open Source ERP Technologies for Java Developers
Open Source ERP Technologies for Java Developers

Más contenido relacionado

La actualidad más candente

Knowledge Management - Concept of BA
Knowledge Management - Concept of BAKnowledge Management - Concept of BA
Knowledge Management - Concept of BA
IMRAN KHAN
 
Strategic Analysis Of Apple Inc Nilesh Mashru
Strategic Analysis Of Apple Inc Nilesh MashruStrategic Analysis Of Apple Inc Nilesh Mashru
Strategic Analysis Of Apple Inc Nilesh Mashru
Nilesh Mashru
 

La actualidad más candente (20)

Apple Incorporation
Apple Incorporation Apple Incorporation
Apple Incorporation
 
Apple
AppleApple
Apple
 
brief history of apple
brief history of applebrief history of apple
brief history of apple
 
Knowledge Management - Concept of BA
Knowledge Management - Concept of BAKnowledge Management - Concept of BA
Knowledge Management - Concept of BA
 
A Report on Nike
A Report on NikeA Report on Nike
A Report on Nike
 
Corporate Responsibility and Sustainability 2009 - South Africa
Corporate Responsibility and Sustainability 2009 - South AfricaCorporate Responsibility and Sustainability 2009 - South Africa
Corporate Responsibility and Sustainability 2009 - South Africa
 
Kodak Strategic Management (Strategic Blunder) Case Study
Kodak Strategic Management (Strategic Blunder) Case Study Kodak Strategic Management (Strategic Blunder) Case Study
Kodak Strategic Management (Strategic Blunder) Case Study
 
[Case Study] And The Winner is Sony's Blu-ray : The High Definition DVD Forma...
[Case Study] And The Winner is Sony's Blu-ray : The High Definition DVD Forma...[Case Study] And The Winner is Sony's Blu-ray : The High Definition DVD Forma...
[Case Study] And The Winner is Sony's Blu-ray : The High Definition DVD Forma...
 
Apple marka
Apple markaApple marka
Apple marka
 
Strategic Analysis Of Apple Inc Nilesh Mashru
Strategic Analysis Of Apple Inc Nilesh MashruStrategic Analysis Of Apple Inc Nilesh Mashru
Strategic Analysis Of Apple Inc Nilesh Mashru
 
final dissertation .pdf
final dissertation .pdffinal dissertation .pdf
final dissertation .pdf
 
Pestle of HP
Pestle of HPPestle of HP
Pestle of HP
 
ENERGY EFFICIENT BUILDING .pptx
ENERGY EFFICIENT BUILDING .pptxENERGY EFFICIENT BUILDING .pptx
ENERGY EFFICIENT BUILDING .pptx
 
Mac book
Mac bookMac book
Mac book
 
Apple store
Apple store Apple store
Apple store
 
nike
nikenike
nike
 
Kodak
KodakKodak
Kodak
 
Apple Inc.
Apple Inc.Apple Inc.
Apple Inc.
 
Open Innovation Procter&Gamble
Open Innovation Procter&GambleOpen Innovation Procter&Gamble
Open Innovation Procter&Gamble
 
Zero energy building original
Zero energy building originalZero energy building original
Zero energy building original
 

Destacado

Open Source Solution
Open Source SolutionOpen Source Solution
Open Source Solution
ittishait
 
Training & development dhanu
Training & development dhanuTraining & development dhanu
Training & development dhanu
Dhanu P G Naik
 
Tips on how to improve the performance of your custom modules for high volume...
Tips on how to improve the performance of your custom modules for high volume...Tips on how to improve the performance of your custom modules for high volume...
Tips on how to improve the performance of your custom modules for high volume...
Odoo
 

Destacado (20)

ERP System Development Plan
ERP System Development PlanERP System Development Plan
ERP System Development Plan
 
ERP PROJECT
ERP PROJECTERP PROJECT
ERP PROJECT
 
Open Source Solution
Open Source SolutionOpen Source Solution
Open Source Solution
 
Smart pos stepbystep-v2-0
Smart pos stepbystep-v2-0Smart pos stepbystep-v2-0
Smart pos stepbystep-v2-0
 
Ad basic tech_workshop
Ad basic tech_workshopAd basic tech_workshop
Ad basic tech_workshop
 
Your Guide to be a Software Engineer
Your Guide to be a Software EngineerYour Guide to be a Software Engineer
Your Guide to be a Software Engineer
 
Moneran Kingdom
Moneran KingdomMoneran Kingdom
Moneran Kingdom
 
Group3
Group3Group3
Group3
 
Nyc 7 qualities_of_the_leader_as_coach_
Nyc 7 qualities_of_the_leader_as_coach_Nyc 7 qualities_of_the_leader_as_coach_
Nyc 7 qualities_of_the_leader_as_coach_
 
Business Process Reengineering Presentation
Business Process Reengineering PresentationBusiness Process Reengineering Presentation
Business Process Reengineering Presentation
 
Unit 06: The Web Application Extension for UML
Unit 06: The Web Application Extension for UMLUnit 06: The Web Application Extension for UML
Unit 06: The Web Application Extension for UML
 
Krefeld iDempiere 05/17/2013
Krefeld iDempiere 05/17/2013Krefeld iDempiere 05/17/2013
Krefeld iDempiere 05/17/2013
 
Keynote #Tech - Solution métier Open Source : exemple de nouvelle approche te...
Keynote #Tech - Solution métier Open Source : exemple de nouvelle approche te...Keynote #Tech - Solution métier Open Source : exemple de nouvelle approche te...
Keynote #Tech - Solution métier Open Source : exemple de nouvelle approche te...
 
Unit 05: Physical Architecture Design
Unit 05: Physical Architecture DesignUnit 05: Physical Architecture Design
Unit 05: Physical Architecture Design
 
3 Jsf
3 Jsf3 Jsf
3 Jsf
 
Training & development dhanu
Training & development dhanuTraining & development dhanu
Training & development dhanu
 
Unit 09: Web Application Testing
Unit 09: Web Application TestingUnit 09: Web Application Testing
Unit 09: Web Application Testing
 
Final Report Business Process Reengineering
Final Report Business Process ReengineeringFinal Report Business Process Reengineering
Final Report Business Process Reengineering
 
1 Introduction
1 Introduction1 Introduction
1 Introduction
 
Tips on how to improve the performance of your custom modules for high volume...
Tips on how to improve the performance of your custom modules for high volume...Tips on how to improve the performance of your custom modules for high volume...
Tips on how to improve the performance of your custom modules for high volume...
 

Similar a Open Source ERP Technologies for Java Developers

Cerberus_Presentation1
Cerberus_Presentation1Cerberus_Presentation1
Cerberus_Presentation1
CIVEL Benoit
 

Similar a Open Source ERP Technologies for Java Developers (20)

Chicago DevOps Meetup Nov2019
Chicago DevOps Meetup Nov2019Chicago DevOps Meetup Nov2019
Chicago DevOps Meetup Nov2019
 
Guide to Generate Extent Report in Kotlin
Guide to Generate Extent Report in KotlinGuide to Generate Extent Report in Kotlin
Guide to Generate Extent Report in Kotlin
 
Anatomy of a Build Pipeline
Anatomy of a Build PipelineAnatomy of a Build Pipeline
Anatomy of a Build Pipeline
 
Avoid the Vendor Lock-in Trap (with App Deployment)
Avoid the Vendor Lock-in Trap (with App Deployment)Avoid the Vendor Lock-in Trap (with App Deployment)
Avoid the Vendor Lock-in Trap (with App Deployment)
 
Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)
 
Cerberus_Presentation1
Cerberus_Presentation1Cerberus_Presentation1
Cerberus_Presentation1
 
Simplifying RCP Update and Install
Simplifying RCP Update and InstallSimplifying RCP Update and Install
Simplifying RCP Update and Install
 
What's new in p2 (2009)?
What's new in p2 (2009)?What's new in p2 (2009)?
What's new in p2 (2009)?
 
Pragmatic Monolith-First, easy to decompose, clean architecture
Pragmatic Monolith-First, easy to decompose, clean architecturePragmatic Monolith-First, easy to decompose, clean architecture
Pragmatic Monolith-First, easy to decompose, clean architecture
 
Testing your application on Google App Engine
Testing your application on Google App EngineTesting your application on Google App Engine
Testing your application on Google App Engine
 
Testing Your Application On Google App Engine
Testing Your Application On Google App EngineTesting Your Application On Google App Engine
Testing Your Application On Google App Engine
 
Regain Control Thanks To Prometheus
Regain Control Thanks To PrometheusRegain Control Thanks To Prometheus
Regain Control Thanks To Prometheus
 
Hot sos em12c_metric_extensions
Hot sos em12c_metric_extensionsHot sos em12c_metric_extensions
Hot sos em12c_metric_extensions
 
DevOps explained
DevOps explainedDevOps explained
DevOps explained
 
Idempotency of commands in distributed systems
Idempotency of commands in distributed systemsIdempotency of commands in distributed systems
Idempotency of commands in distributed systems
 
Docker presentasjon java bin
Docker presentasjon java binDocker presentasjon java bin
Docker presentasjon java bin
 
Java programming concept
Java programming conceptJava programming concept
Java programming concept
 
CMI 2.0 session at Drupal DevDays in Cluj-Napoca
CMI 2.0 session at Drupal DevDays in Cluj-NapocaCMI 2.0 session at Drupal DevDays in Cluj-Napoca
CMI 2.0 session at Drupal DevDays in Cluj-Napoca
 
Shipping Code like a keptn: Continuous Delivery & Automated Operations on k8s
Shipping Code like a keptn: Continuous Delivery & Automated Operations on k8sShipping Code like a keptn: Continuous Delivery & Automated Operations on k8s
Shipping Code like a keptn: Continuous Delivery & Automated Operations on k8s
 
Tdd,Ioc
Tdd,IocTdd,Ioc
Tdd,Ioc
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Open Source ERP Technologies for Java Developers

  • 1. Introduction to Open Source ERP for Java Developers (Compiere, ADempiere and Openbravo) Presented by: Chuck Boecking from Trek Global 512.850.6068 Note: If you find this presentation helpful or if you have recommendations, please reach out and let me know. Thanks!
  • 2. Why a Java Developer Should Care ● Open Source ERP is approaching the tipping point of business acceptance. ● This tipping point gives the Java developers more freedom and flexibility when adopting platforms to solve wide-scale business problems. ● A single company-wide open source system gives developers more resources to drive and change business.
  • 3. Interesting Points ● Compiere, ADempiere and OpenBravo are mature and stable solutions for managing goods and services in enterprises from $50M to $500M in gross revenue. ● Discussion topics will include architecture, application, performance tuning and war stories.
  • 4. What is ERP? ERP or Enterprise Resource Planning is a single application that brings many common organizational features into a single package. Features include: Accounting (GL, AP, AR) Inventory Management CRM (Customer Management Receiving Purchasing (Order) Fulfillment and Shipping Management Product Management Sales (Order) Management Manufacturing Customer Management Vendor Management Service Management
  • 5. Case Studies Worth Reading Complex inspection and wholesale distribution ● 120 users across many countries and multiple financial entities ● Why notable: extensive customization High volume wholesale and retail distribution ● 300 concurrent users shipping 10M units per month across 140K order lines ● Why notable: high volume
  • 6. Technology Stack ● Java SE ● Tomcat and JBoss ● Model Driven Architecture - application dictionary ● zk WebUI and Java Swing ● PostgreSQL DB and Oracle DB ● 2Pack Release Management Notable: supports end-to-end license-free usage for companies with up to 500 concurrent users.
  • 7. ADempiere Statistics ● Just under 3000 classes w/o including auto- generated model classes ● About 800 tables ● Created in sf.net in 2006 as a fork from Compiere ● Historically one of sf.net's most active projects
  • 8.
  • 9. Common Developer Entry Points Developer hooks for implementing logic and automation: ● Callout - based on user interactions with UI. ● Model - based on interaction with persistence layer. ● Processes - based on users deliberately pressing a button or invoking a menu action. Other: Context - helps control visibility and default values and is also accessible from code almost anywhere.
  • 10. Callout package org.adempiere.callout; import java.util.Properties; import org.compiere.model.CalloutEngine; import org.compiere.model.GridField; import org.compiere.model.GridTab; import org.compiere.util.AdempiereSystemError; import org.compiere.util.Env; public class SimpleCallout extends CalloutEngine { public String test(Properties ctx, int windowNo, GridTab mTab, GridField mField, Object value) throws AdempiereSystemError { // First get value Price = ((BigDecimal)mTab.getValue("Price")); // do some calculations BigDecimal Total = Qty.multiply(Price); // Set value back to column field mTab.setValue("Total", Total); return "this is a return string"; } } Source: http://www.adempiere.com/Callout
  • 11. Model package adempiere.model; import org.compiere.model.X_XX_Material; public class MMaterial extends X_XX_Material { /** Create & Load existing Persistent Object */ public MMaterial(Properties ctx, int XX_Material_ID, String trxName) { super(ctx, XX_Material_ID, trxName); // other initializations here } /** Create & Load existing Persistent Object. */ public MMaterial(Properties ctx, ResultSet rs, String trxName) { super(ctx, rs, trxName); // other initializations here } /** [OPTIONAL] Called before Save for Pre-Save Operation. */ protected boolean beforeSave(boolean newRecord) { return true; } /** ... afterSave(), getters, setters, convenience methods */ } Example: http://www.adempiere.com/NewWindow
  • 12. Process package org.compiere.process; public class TemplateProcess extends SvrProcess { private PO record; @Override protected void prepare() { for ( ProcessInfoParameter para : getParameter()) { ...handle parameters... } // you can also retrieve the id of the current record for processes called from a window int recordId = getRecord_ID(); } @Override protected String doIt() throws Exception { /* Commonly the doIt method firstly do some validations on the parameters and throws AdempiereUserException or AdempiereSystemException if errors found */ return "A message to the user (indicating success - failures must throw Exceptions)"; } /** Post process actions (outside trx). */ @Override protected void postProcess(boolean success) { if (success) {} else { } } } http://www.adempiere.com/Process
  • 13. Context int currole_id = Env.getContextAsInt(ctx, "#AD_Role_ID");
  • 14. 2Pack Environment Migration http://www.adempiere.com/2Pack Simple Environment Management Prod Complex Environment Prod Management Stage 1 Stage 2 Dev QA1 QA2 QA3 Dev1 Dev2 Dev3 Dev4
  • 15. Resources Development introduction http://www.adempiere.com/Development End-to-end development example http://www.adempiere. com/How_to_create_a_complete_new_module_in_ADempiere Creating a customization environment http://www.adempiere.com/Create_your_ADempiere_customization_environment
  • 16. War Stories Complex: CSI inspection Volume: 10M units from worldwide distribution eCommerce: 3 webstores => 1K shipments/day Project Management: Time tracking
  • 17. Chuck Boecking ● Started with Compiere in 2003 ● Open Source ERP 70 to 90% since 2006 ● Professional educator and integrator ● Wholesale distribution and assembly specialty Chuck Boecking 512.850.6068 cboecking@trekglobal.com