Download User Manual
Transcript
OpenRules, Inc. OpenRules Database Integration TABLE OF CONTENTS Introduction ................................................................................................................3 Accessing Data Located in Database ...........................................................................3 Simple DB Access Library ....................................................................................................3 Example "HelloCustomerDB" with DB-based Customers ......................................................4 Example "DecisionPatientTherapyDB" with DB-based Patients ............................................6 Creating and Maintaining Rules in Database ...............................................................7 Simple DB-based Rule Repository........................................................................................7 Database Structure....................................................................................................... 8 Example "HelloJavaDB" with rules inside Apache Derby DB ....................................... 8 Database Configuration File "db.properties" ............................................................. 10 Simple Database Administration Interface ................................................................ 11 Example "RulesRepositoryDB" with rules inside Java Derby DB................................ 13 Pure DB-based Rule Repository (no Excel) ......................................................................... 16 Example "RulesRepositoryPureDB" ........................................................................... 16 Main Java Launcher .................................................................................................... 17 Defining Database Properties .................................................................................... 18 Special OpenRulesEngine Constructor ....................................................................... 19 Changes in the Main.xls file ....................................................................................... 19 Database Administration Interface ............................................................................ 20 DB-based Rules Repository with Version Control ............................................................... 21 Database Structure..................................................................................................... 21 Repository Versioning Concept .................................................................................. 22 Example "RulesRepositoryDBV" with rules inside Apache Derby.............................. 23 Maintaining Multiple Repository Versions ................................................................ 29 Database Administration Interface ............................................................................ 33 Custom DB Protocols ........................................................................................................ 35 Using External Rules to Access Custom Rule Repositories ........................................... 35 Supporting Jars and Projects ..................................................................................... 35 Technical Support ..................................................................................................... 36 2