How to Create Rules or Decision Tables for the Decision Function What You Need to Know About Using Car Rental Sample with a Decision Table
7.2.3 How to Create Rules or Decision Tables for the Decision Function
The car rental sample includes two rulesets, one with IFTHEN rules and another containing a Decision Table. You can use either IFTHEN rules or Decision Tables or both in your application if you are using a Decision Point. To view the rules in the car rental sample application: 1. In Rules Designer click the Denial Rules:if-then ruleset, as shown in Figure 7–4 . Working with Rules SDK Decision Point API 7-7 Figure 7–4 Ruleset with IFTHEN Rules for the Car Rental Sample Application The Denial Rules:if-then ruleset includes two rules: ■ under age : this rule defines the minimum age of the driver. The rule compares the Driver instance age property to the global Minimum driver age. If the driver is under this age, then a new Denial fact is asserted. A call to the decision function collects this Denial fact, as defined in its output. The rule also calls a user-defined function, audit, to provide some auditing output about why the Denial is created. ■ too many accidents : this rule defines an upper threshold for the number of accidents a driver can have before a rental for the driver is denied. The rule also calls a user-defined function, audit, to provide some auditing output about why the Denial is created. To view the Decision Table in the car rental application: 1. In Rules Designer, click the Denial Rules:decision table ruleset, as shown in Figure 7–5 . 7-8 Oracle Fusion Middleware Users Guide for Oracle Business Rules Figure 7–5 Ruleset with Decision Table for the Car Rental Sample Application7.2.4 What You Need to Know About Using Car Rental Sample with a Decision Table
The car rental sample application includes the Denial Rules: decision table ruleset. To switch to use a Decision Table in the supplied decision function sample, move the Denial Rules:if-then from the Selected area in the decision function and add the Denial Rules: decision table ruleset, which uses a Decision Table to define similar rules, as shown in Figure 7–6 . Working with Rules SDK Decision Point API 7-9 Figure 7–6 Decision Function for Car Rental Sample with Decision Table Ruleset7.3 Creating a Java Application Using Rules SDK Decision Point
When use Rules SDK in a development environment you of the option of using Decision Point API with a pre-loaded dictionary. In a production environment you typically use the Decision Point API with the MDS repository signature and the dictionary is stored in MDS. For more information on using a Decision Point with, see Section 7.5, What You Need to Know About Using Decision Point in a Production Environment . The source code for Oracle Business Rules-specific samples is available online at https:www.samplecode.oracle.comsfgopage1497 For SOA samples online visit https:www.samplecode.oracle.comsfprojectssoasamples The CarRentalProject project includes the com.example.rules.demo package that includes the car rental sample file, CarRentalWithDecisionPointUsingPreloadedDictionary.java. The project also includes several .java source files that support different variations forParts
» Oracle Fusion Middleware Online Documentation Library
» What Are Rule Conditions? What Are Rule Actions?
» What Are Decision Tables? What Are Facts and Bucketsets? What Are Rulesets?
» Oracle Business Rules SDK Rules Designer
» Declarative Rules The RETE Algorithm
» How to Display and Edit XML Facts How to Reload XML Facts with Updated Schema
» What You Need to Know About XML Facts
» How to Display and Edit Java Facts What You Need to Know About Java Facts
» What You Need to Know About List of Values Bucketsets What You Need to Know About Range Bucketsets
» What You Need to Know About Bucketset Allowed in Actions Option
» In the Filter Query field, click insert test to insert a default test as
» How to Add Rules How to Define a Test in a Rule
» What You Need to Know About Advanced Mode Rules
» Introduction to Tree Mode Rules
» What You Need to Know About Tree Mode Rules
» How to Use Bucketsets to Provide Options for Test Expressions
» From the list next to the Add icon, select Rule.
» Introduction to Decision Table Operations
» Introduction to Decision Point API How to Obtain the Car Rental Sample Application
» How to Create Data Model Elements for Use with a Decision Point
» How to Add a Decision Point Using Decision Point Builder
» How to Create and Use Decision Point Instances
» What You Need to Know About Decision Point and Decision Tracing
» Testing Oracle Business Rules at Runtime Introduction to the Grades Sample Application
» Enter a name and test score and click Submit. This returns results as shown in
» Understanding Oracle Business Rules ADF Business Components Fact Types
» Understanding Oracle Business Rules Decision Point Action Type
» How to Call a Decision Point with ADF Business Components Facts
» How to Call a Decision Function with Java Decision Point Interface
» What You Need to Know About Decision Function Configuration with ADF Business Components
» How to Add the Outside Manager Finder Class
» How to Update ADF META INF for Local Dictionary Access
» How to Add the Employee Raises Java Class
» Working with Decision Component Metadata
» Introduction to Decision Components Decision Service Architecture
» Working with Advanced Mode Options
» Expression Builder Condition Browser
» Editing Decision Table Cells
» Understanding the Validation Panel Updating the Validation Panel
Show more